Files
nixpkgs/pkgs/development/python-modules/pure-eval/default.nix
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00

40 lines
771 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools-scm,
toml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pure-eval";
version = "0.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alexmojaki";
repo = "pure_eval";
rev = "v${version}";
hash = "sha256-gdP8/MkzTyjkZaWUG5PoaOtBqzbCXYNYBX2XBLWLh18=";
};
build-system = [ setuptools-scm ];
dependencies = [ toml ];
nativeCheckInputs = [ 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 = [ ];
};
}