nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 43 lines 750 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, decorator 6, numpy 7, platformdirs 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "pytools"; 13 version = "2022.1.2"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-XoJBAYgKJGNUdWNliAplu0FvaoyrZRO2j8u0j7oJD8s="; 19 }; 20 21 propagatedBuildInputs = [ 22 decorator 23 numpy 24 platformdirs 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "pytools" 33 "pytools.batchjob" 34 "pytools.lex" 35 ]; 36 37 meta = { 38 homepage = "https://github.com/inducer/pytools/"; 39 description = "Miscellaneous Python lifesavers."; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ artuuge ]; 42 }; 43}