Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.7.3"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "a45f98f40edb47c2a0e2786ffe7d68fc2cb4ad05b2efcb50e95c337f6ecae353"; 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}