mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
python310Packages.pyrainbird: init at 0.4.3
This commit is contained in:
parent
76b29a4500
commit
d2905c6fbc
2 changed files with 60 additions and 0 deletions
58
pkgs/development/python-modules/pyrainbird/default.nix
Normal file
58
pkgs/development/python-modules/pyrainbird/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, parameterized
|
||||
, pycryptodome
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, requests
|
||||
, responses
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyrainbird";
|
||||
version = "0.4.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jbarrancos";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-uRHknWvoPKPu3B5MbSEUlWqBKwAbNMwsgXuf6PZxhkU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pycryptodome
|
||||
pyyaml
|
||||
requests
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
parameterized
|
||||
responses
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "datetime" ""
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--cov=pyrainbird --cov-report=term-missing --pep8 --flakes --mccabe" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyrainbird"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to interact with Rainbird controllers";
|
||||
homepage = "https://github.com/jbarrancos/pyrainbird/";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -7701,6 +7701,8 @@ in {
|
|||
|
||||
py-radix = callPackage ../development/python-modules/py-radix { };
|
||||
|
||||
pyrainbird = callPackage ../development/python-modules/pyrainbird { };
|
||||
|
||||
pyramid_beaker = callPackage ../development/python-modules/pyramid_beaker { };
|
||||
|
||||
pyramid = callPackage ../development/python-modules/pyramid { };
|
||||
|
|
Loading…
Reference in a new issue