Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 42 lines 894 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "maxcube-api"; 10 version = "0.4.3"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "hackercowboy"; 15 repo = "python-${pname}"; 16 rev = "V${version}"; 17 sha256 = "10k61gfpnqljf3p3qxr97xq7j67a9cr4ivd9v72hdni0znrbx6ym"; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py --replace "license=license" "license='MIT'" 22 ''; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 disabledTests = [ 27 "testSendRadioMsgClosesConnectionOnErrorAndRetriesIfReusingConnection" 28 "testSendRadioMsgReusesConnection" 29 ]; 30 31 pythonImportsCheck = [ 32 "maxcube" 33 "maxcube.cube" 34 ]; 35 36 meta = { 37 description = "eQ-3/ELV MAX! Cube Python API"; 38 homepage = "https://github.com/hackercowboy/python-maxcube-api"; 39 license = lib.licenses.mit; 40 maintainers = [ ]; 41 }; 42}