anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / pure-eval / default.nix
bloba94abf72712a217d1e20749c4c8008893ae0da41
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools-scm,
7   toml,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "pure_eval";
13   version = "0.2.2";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "alexmojaki";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU=";
23   };
25   buildInputs = [ setuptools-scm ];
27   propagatedBuildInputs = [ toml ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "pure_eval" ];
33   meta = with lib; {
34     description = "Safely evaluate AST nodes without side effects";
35     homepage = "https://github.com/alexmojaki/pure_eval";
36     license = licenses.mit;
37     maintainers = with maintainers; [ gebner ];
38   };