depot/third_party/nixpkgs/pkgs/development/python-modules/pure-eval/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

48 lines
852 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools-scm
, toml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pure_eval";
version = "0.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = pname;
rev = "v${version}";
hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
toml
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pure_eval"
];
meta = with lib; {
description = "Safely evaluate AST nodes without side effects";
homepage = "https://github.com/alexmojaki/pure_eval";
license = licenses.mit;
maintainers = with maintainers; [ gebner ];
};
}