mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
Merge pull request #112214 from fabaff/pyopenuv
This commit is contained in:
commit
fd9663817c
3 changed files with 53 additions and 1 deletions
50
pkgs/development/python-modules/pyopenuv/default.nix
Normal file
50
pkgs/development/python-modules/pyopenuv/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, aresponses
|
||||||
|
, async-timeout
|
||||||
|
, asynctest
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, pytest-aiohttp
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-cov
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyopenuv";
|
||||||
|
version = "2.0.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bachya";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1pzdcy65gndrlyhrwyc1rwsh8n4w79wla8n9fr13m00vac3cqkl0";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ poetry-core ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ aiohttp ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
aresponses
|
||||||
|
asynctest
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-aiohttp
|
||||||
|
pytest-cov
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
# Ignore the examples as they are prefixed with test_
|
||||||
|
pytestFlagsArray = [ "--ignore examples/" ];
|
||||||
|
pythonImportsCheck = [ "pyopenuv" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python API to retrieve data from openuv.io";
|
||||||
|
homepage = "https://github.com/bachya/pyopenuv";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -592,7 +592,7 @@
|
||||||
"opensensemap" = ps: with ps; [ opensensemap-api ];
|
"opensensemap" = ps: with ps; [ opensensemap-api ];
|
||||||
"opensky" = ps: with ps; [ ];
|
"opensky" = ps: with ps; [ ];
|
||||||
"opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
|
"opentherm_gw" = ps: with ps; [ ]; # missing inputs: pyotgw
|
||||||
"openuv" = ps: with ps; [ ]; # missing inputs: pyopenuv
|
"openuv" = ps: with ps; [ pyopenuv ];
|
||||||
"openweathermap" = ps: with ps; [ pyowm ];
|
"openweathermap" = ps: with ps; [ pyowm ];
|
||||||
"opnsense" = ps: with ps; [ pyopnsense ];
|
"opnsense" = ps: with ps; [ pyopnsense ];
|
||||||
"opple" = ps: with ps; [ ]; # missing inputs: pyoppleio
|
"opple" = ps: with ps; [ ]; # missing inputs: pyoppleio
|
||||||
|
|
|
@ -5721,6 +5721,8 @@ in {
|
||||||
|
|
||||||
pyopenssl = callPackage ../development/python-modules/pyopenssl { };
|
pyopenssl = callPackage ../development/python-modules/pyopenssl { };
|
||||||
|
|
||||||
|
pyopenuv = callPackage ../development/python-modules/pyopenuv { };
|
||||||
|
|
||||||
pyopnsense = callPackage ../development/python-modules/pyopnsense { };
|
pyopnsense = callPackage ../development/python-modules/pyopnsense { };
|
||||||
|
|
||||||
pyosf = callPackage ../development/python-modules/pyosf { };
|
pyosf = callPackage ../development/python-modules/pyosf { };
|
||||||
|
|
Loading…
Reference in a new issue