ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / synologydsm-api / default.nix
blob71bd11144294251ed9cc0587d272a4ee034b230e
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , fetchpatch
6 , poetry-core
7 , requests
8 , urllib3
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "synologydsm-api";
14   version = "1.0.2";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "hacf-fr";
22     repo = "synologydsm-api";
23     rev = "v${version}";
24     sha256 = "0gyahf1x6i6j9pslh1y3pyh3si5jvxb06r1w761b9gsxyk14y1si";
25   };
27   patches = [
28     # https://github.com/hacf-fr/synologydsm-api/pull/84
29     (fetchpatch {
30       name = "switch-to-poetry-core.patch";
31       url = "https://github.com/hacf-fr/synologydsm-api/commit/f1ea2be927388bdff6d43d09027b82a854635e34.patch";
32       sha256 = "120pdgp2i4ds6y3rf9j372f9zdcf4y8rsgl1xjbkgdhkp76bkkgr";
33     })
34   ];
36   nativeBuildInputs = [
37     poetry-core
38   ];
40   propagatedBuildInputs = [
41     requests
42     urllib3
43   ];
45   checkInputs = [
46     pytestCheckHook
47   ];
49   pythonImportsCheck = [ "synology_dsm" ];
51   meta = with lib; {
52     description = "Python API for communication with Synology DSM";
53     homepage = "https://github.com/hacf-fr/synologydsm-api";
54     license = licenses.mit;
55     maintainers = with maintainers; [ dotlambda ];
56   };