Merge pull request #160143 from fabaff/net2grid

python3Packages.net2grid: init at 2.0.0
This commit is contained in:
Fabian Affolter 2022-02-16 00:12:59 +01:00 committed by GitHub
commit 8f798fb129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,58 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
}:
buildPythonPackage rec {
pname = "net2grid";
version = "2.0.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "klaasnicolaas";
repo = "python-net2grid";
rev = "v${version}";
hash = "sha256-2hjWQaktx7XUS7gf7A+9QNSZSujyVZUka/SwEnEu2dg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
yarl
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"0.0.0"' '"${version}"' \
--replace 'addopts = "--cov"' ""
'';
pythonImportsCheck = [
"net2grid"
];
meta = with lib; {
description = "Module for interacting with NET2GRID devices";
homepage = "https://github.com/klaasnicolaas/python-net2grid";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5388,6 +5388,8 @@ in {
nestedtext = callPackage ../development/python-modules/nestedtext { };
net2grid = callPackage ../development/python-modules/net2grid { };
netaddr = callPackage ../development/python-modules/netaddr { };
netcdf4 = callPackage ../development/python-modules/netcdf4 { };