Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / gridnet / default.nix
blob46a3f3f1b839e3ba11efd677dfbb9977f5e938b0
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pytest-asyncio
8 , pytestCheckHook
9 , pythonOlder
10 , yarl
13 buildPythonPackage rec {
14   pname = "gridnet";
15   version = "5.0.0";
16   pyproject = true;
18   disabled = pythonOlder "3.11";
20   src = fetchFromGitHub {
21     owner = "klaasnicolaas";
22     repo = "python-gridnet";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-7tLT5sRoUjWs1DOIuUEbnJJkg9LHZqrN/eu+Mjx5Yd4=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace "0.0.0" "${version}" \
30       --replace "--cov" ""
31   '';
33   nativeBuildInputs = [
34     poetry-core
35   ];
37   propagatedBuildInputs = [
38     aiohttp
39     yarl
40   ];
42   nativeCheckInputs = [
43     aresponses
44     pytest-asyncio
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "gridnet"
50   ];
52   meta = with lib; {
53     description = "Asynchronous Python client for NET2GRID devices";
54     homepage = "https://github.com/klaasnicolaas/python-gridnet";
55     changelog = "https://github.com/klaasnicolaas/python-gridnet/releases/tag/v${version}";
56     license = licenses.mit;
57     maintainers = with maintainers; [ dotlambda ];
58   };