Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pure-eval / default.nix
blob60615c0a0640bcf28d1d21874fc0147f5bba5ebd
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools-scm
6 , toml
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pure_eval";
12   version = "0.2.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "alexmojaki";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU=";
22   };
24   buildInputs = [
25     setuptools-scm
26   ];
28   propagatedBuildInputs = [
29     toml
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "pure_eval"
38   ];
40   meta = with lib; {
41     description = "Safely evaluate AST nodes without side effects";
42     homepage = "https://github.com/alexmojaki/pure_eval";
43     license = licenses.mit;
44     maintainers = with maintainers; [ gebner ];
45   };