pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / pyyardian / default.nix
blobf0c76c798bc0515dead4b63580c204759f39ceae
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   setuptools,
7   pythonOlder,
8   wheel,
9 }:
11 buildPythonPackage rec {
12   pname = "pyyardian";
13   version = "1.2.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "h3l1o5";
20     repo = "pyyardian";
21     rev = "refs/tags/${version}";
22     hash = "sha256-JBb62pFDuVcXIGRc6UOp5/ciUtbGm4XnKZjt1icF/jQ=";
23   };
25   nativeBuildInputs = [
26     setuptools
27     wheel
28   ];
30   propagatedBuildInputs = [ aiohttp ];
32   # Tests require network access
33   doCheck = false;
35   pythonImportsCheck = [ "pyyardian" ];
37   meta = with lib; {
38     description = "Module for interacting with the Yardian irrigation controller";
39     homepage = "https://github.com/h3l1o5/pyyardian";
40     license = licenses.mit;
41     maintainers = with maintainers; [ fab ];
42   };