Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pure-eval / default.nix
blobf21f4d7fe4cc89d4042fdbf27b90880f5ec497ac
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   SETUPTOOLS_SCM_PRETEND_VERSION = version;
26   buildInputs = [
27     setuptools-scm
28   ];
30   propagatedBuildInputs = [
31     toml
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [
39     "pure_eval"
40   ];
42   meta = with lib; {
43     description = "Safely evaluate AST nodes without side effects";
44     homepage = "https://github.com/alexmojaki/pure_eval";
45     license = licenses.mit;
46     maintainers = with maintainers; [ gebner ];
47   };