ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / maxcube-api / default.nix
blob0627667a4e568618650d915fe0e1d9a244e5ff01
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , unittestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "maxcube-api";
10   version = "0.4.3";
11   format = "setuptools";
12   disabled = pythonOlder "3.7";
14   src = fetchFromGitHub {
15     owner = "hackercowboy";
16     repo = "python-${pname}";
17     rev = "V${version}";
18     sha256 = "10k61gfpnqljf3p3qxr97xq7j67a9cr4ivd9v72hdni0znrbx6ym";
19   };
21   postPatch = ''
22     substituteInPlace setup.py --replace "license=license" "license='MIT'"
23   '';
25   checkInputs = [ unittestCheckHook ];
27   pythonImportsCheck = [
28     "maxcube"
29     "maxcube.cube"
30   ];
32   meta = with lib; {
33     description = "eQ-3/ELV MAX! Cube Python API";
34     homepage = "https://github.com/hackercowboy/python-maxcube-api";
35     license = licenses.mit;
36     maintainers = with maintainers; [ hexa ];
37   };