Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 37 lines 764 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, spark_parser 5, xdis 6, nose 7, pytest 8, hypothesis 9, six 10}: 11 12buildPythonPackage rec { 13 pname = "uncompyle6"; 14 version = "3.6.2"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "aac071daef4b6cf95143ef08cd35d762a2bf2ea8249119a9371a91149c9996e7"; 19 }; 20 21 checkInputs = [ nose pytest hypothesis six ]; 22 propagatedBuildInputs = [ spark_parser xdis ]; 23 24 # six import errors (yet it is supplied...) 25 checkPhase = '' 26 runHook preCheck 27 pytest ./pytest --ignore=pytest/test_function_call.py 28 runHook postCheck 29 ''; 30 31 meta = with stdenv.lib; { 32 description = "Python cross-version byte-code deparser"; 33 homepage = https://github.com/rocky/python-uncompyle6/; 34 license = licenses.gpl3; 35 }; 36 37}