mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
36 lines
707 B
Nix
36 lines
707 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytools
|
|
, appdirs
|
|
, six
|
|
, cgen
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "codepy";
|
|
version = "2019.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inducer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|