mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
python3Packages.gridnet: init at 4.0.0
This commit is contained in:
parent
abff52620f
commit
82f820423c
2 changed files with 59 additions and 0 deletions
57
pkgs/development/python-modules/gridnet/default.nix
Normal file
57
pkgs/development/python-modules/gridnet/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, aiohttp
|
||||||
|
, yarl
|
||||||
|
, aresponses
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "gridnet";
|
||||||
|
version = "4.0.0";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "klaasnicolaas";
|
||||||
|
repo = "python-gridnet";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-Ihs8qUx50tAUcRBsVArRhzoLcQUi1vbYh8sPyK75AEk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace "0.0.0" "${version}" \
|
||||||
|
--replace "--cov" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
yarl
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
aresponses
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "gridnet" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Asynchronous Python client for NET2GRID devices";
|
||||||
|
homepage = "https://github.com/klaasnicolaas/python-gridnet";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3579,6 +3579,8 @@ in {
|
||||||
|
|
||||||
growattserver = callPackage ../development/python-modules/growattserver { };
|
growattserver = callPackage ../development/python-modules/growattserver { };
|
||||||
|
|
||||||
|
gridnet = callPackage ../development/python-modules/gridnet { };
|
||||||
|
|
||||||
grip = callPackage ../development/python-modules/grip { };
|
grip = callPackage ../development/python-modules/grip { };
|
||||||
|
|
||||||
groestlcoin_hash = callPackage ../development/python-modules/groestlcoin_hash { };
|
groestlcoin_hash = callPackage ../development/python-modules/groestlcoin_hash { };
|
||||||
|
|
Loading…
Reference in a new issue