forked from mirrors/nixpkgs
Merge pull request #197857 from fabaff/python-bsblan
python310Packages.python-bsblan: init at 0.5.6
This commit is contained in:
commit
6d0849d2f4
64
pkgs/development/python-modules/python-bsblan/default.nix
Normal file
64
pkgs/development/python-modules/python-bsblan/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, packaging
|
||||
, poetry-core
|
||||
, pydantic
|
||||
, pytest-asyncio
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, yarl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-bsblan";
|
||||
version = "0.5.6";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "liudger";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-eTKexiuomlTryy2bD2w9Pzhb4R9C3OIbLNX+7h/5l+c=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
packaging
|
||||
pydantic
|
||||
yarl
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'version = "0.0.0"' 'version = "${version}"' \
|
||||
--replace "--cov" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bsblan"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module to control and monitor an BSBLan device programmatically";
|
||||
homepage = "https://github.com/liudger/python-bsblan";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -9014,6 +9014,8 @@ in {
|
|||
|
||||
python-box = callPackage ../development/python-modules/python-box { };
|
||||
|
||||
python-bsblan = callPackage ../development/python-modules/python-bsblan { };
|
||||
|
||||
python-cinderclient = callPackage ../development/python-modules/python-cinderclient { };
|
||||
|
||||
python-constraint = callPackage ../development/python-modules/python-constraint { };
|
||||
|
|
Loading…
Reference in a new issue