My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/maxcube-api/default.nix

42 lines
885 B

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "maxcube-api";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hackercowboy";
repo = "python-${pname}";
rev = "V${version}";
sha256 = "10k61gfpnqljf3p3qxr97xq7j67a9cr4ivd9v72hdni0znrbx6ym";
};
postPatch = ''
substituteInPlace setup.py --replace "license=license" "license='MIT'"
'';
pythonImportsCheck = [
"maxcube"
"maxcube.cube"
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
meta = with lib; {
description = "eQ-3/ELV MAX! Cube Python API";
homepage = "https://github.com/hackercowboy/python-maxcube-api";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}