2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytools
|
|
|
|
, appdirs
|
|
|
|
, six
|
|
|
|
, cgen
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "codepy";
|
|
|
|
version = "2019.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inducer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytools six cgen ];
|
|
|
|
propagatedBuildInputs = [ appdirs ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "codepy" ];
|
|
|
|
|
|
|
|
# Tests are broken
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/inducer/codepy";
|
|
|
|
description = "Generate and execute native code at run time, from Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ atila ];
|
|
|
|
};
|
|
|
|
}
|