nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 893 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyparsing 5, pytestCheckHook 6, pretend 7, setuptools 8}: 9 10let 11 packaging = buildPythonPackage rec { 12 pname = "packaging"; 13 version = "21.3"; 14 format = "pyproject"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s="; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools 23 ]; 24 25 propagatedBuildInputs = [ pyparsing ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 pretend 30 ]; 31 32 # Prevent circular dependency 33 doCheck = false; 34 35 passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; }); 36 37 meta = with lib; { 38 description = "Core utilities for Python packages"; 39 homepage = "https://github.com/pypa/packaging"; 40 license = with licenses; [ bsd2 asl20 ]; 41 maintainers = with maintainers; [ bennofs ]; 42 }; 43 }; 44in 45packaging