Merge pull request #70729 from makefu/pkgs/pyhaversion/init
init pyhaversion (3.1.0) for home-assistant
This commit is contained in:
commit
a1f6c972bb
4 changed files with 86 additions and 1 deletions
38
pkgs/development/python-modules/aresponses/default.nix
Normal file
38
pkgs/development/python-modules/aresponses/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
# propagatedBuildInputs
|
||||
, aiohttp
|
||||
# buildInputs
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aresponses";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d1d6ef52b9a97142d106688cf9b112602ef3dc66f6368de8f91f47241d8cfc9c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytest
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
# tests only distributed via git repository, not pypi
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asyncio testing server";
|
||||
homepage = "https://github.com/circleup/aresponses";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.makefu ];
|
||||
};
|
||||
}
|
43
pkgs/development/python-modules/pyhaversion/default.nix
Normal file
43
pkgs/development/python-modules/pyhaversion/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
# propagatedBuildInputs
|
||||
, aiohttp
|
||||
, async-timeout
|
||||
# buildInputs
|
||||
, pytestrunner
|
||||
# checkInputs
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
, aresponses
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "pyhaversion";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1d4smpzlaw0sqfgkgvhxsn8h7bmwj8h9gj98sdzvkzhp5vhd96b2";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytestrunner
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytest-asyncio
|
||||
aresponses
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python module to the newest version number of Home Assistant";
|
||||
homepage = https://github.com/ludeeus/pyhaversion;
|
||||
maintainers = [ maintainers.makefu ];
|
||||
};
|
||||
}
|
|
@ -807,7 +807,7 @@
|
|||
"venstar" = ps: with ps; [ ];
|
||||
"vera" = ps: with ps; [ ];
|
||||
"verisure" = ps: with ps; [ ];
|
||||
"version" = ps: with ps; [ ];
|
||||
"version" = ps: with ps; [ pyhaversion ];
|
||||
"vesync" = ps: with ps; [ ];
|
||||
"viaggiatreno" = ps: with ps; [ ];
|
||||
"vicare" = ps: with ps; [ ];
|
||||
|
|
|
@ -175,6 +175,8 @@ in {
|
|||
|
||||
apprise = callPackage ../development/python-modules/apprise { };
|
||||
|
||||
aresponses = callPackage ../development/python-modules/aresponses { };
|
||||
|
||||
argon2_cffi = callPackage ../development/python-modules/argon2_cffi { };
|
||||
|
||||
asana = callPackage ../development/python-modules/asana { };
|
||||
|
@ -6158,6 +6160,8 @@ in {
|
|||
|
||||
pyhamcrest = callPackage ../development/python-modules/pyhamcrest { };
|
||||
|
||||
pyhaversion = callPackage ../development/python-modules/pyhaversion { };
|
||||
|
||||
parse = callPackage ../development/python-modules/parse { };
|
||||
|
||||
parse-type = callPackage ../development/python-modules/parse-type { };
|
||||
|
|
Loading…
Reference in a new issue