ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / motioneye-client / default.nix
blobf1ba9ee73304a44ac7698b8384e8d26a7037a096
1 { stdenv
2 , lib
3 , aiohttp
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pytest-aiohttp
8 , pytest-timeout
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "motioneye-client";
15   version = "0.3.12";
16   format = "pyproject";
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "dermotduffy";
22     repo = pname;
23     rev = "v${version}";
24     sha256 = "sha256-vEB9ztz0RTGoolFUVQcMV7DUthCEAx1kpwkAS2186OU=";
25   };
27   nativeBuildInputs = [
28     poetry-core
29   ];
31   propagatedBuildInputs = [
32     aiohttp
33   ];
35   checkInputs = [
36     pytest-aiohttp
37     pytest-timeout
38     pytestCheckHook
39   ];
41   postPatch = ''
42     substituteInPlace pyproject.toml \
43       --replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" ""
44   '';
46   pythonImportsCheck = [
47     "motioneye_client"
48   ];
50   meta = with lib; {
51     broken = stdenv.isDarwin;
52     description = "Python library for motionEye";
53     homepage = "https://github.com/dermotduffy/motioneye-client";
54     license = with licenses; [ mit ];
55     maintainers = with maintainers; [ fab ];
56   };