1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytools 5, appdirs 6, six 7, cgen 8}: 9 10buildPythonPackage rec { 11 pname = "codepy"; 12 version = "2019.1"; 13 14 src = fetchFromGitHub { 15 owner = "inducer"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM="; 19 }; 20 21 buildInputs = [ pytools six cgen ]; 22 propagatedBuildInputs = [ appdirs ]; 23 24 pythonImportsCheck = [ "codepy" ]; 25 26 # Tests are broken 27 doCheck = false; 28 29 meta = with lib; { 30 homepage = "https://github.com/inducer/codepy"; 31 description = "Generate and execute native code at run time, from Python"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ atila ]; 34 }; 35}