nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 62 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 docutils, 5 fetchPypi, 6 pythonOlder, 7 importlib-metadata, 8 importlib-resources, 9 setuptools, 10 packaging, 11 typing-extensions, 12 appdirs, 13 pytestCheckHook, 14}: 15 16buildPythonPackage rec { 17 pname = "pkg-about"; 18 version = "2.0.12"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.11"; 22 23 src = fetchPypi { 24 pname = "pkg_about"; 25 inherit version; 26 hash = "sha256-WFhOMeBvAPaU/AIGoGlSziJ633TrGBgOcbfBxAm3H8E="; 27 }; 28 29 # tox is listed in build requirements but not actually used to build 30 # keeping it as a requirement breaks the build unnecessarily 31 postPatch = '' 32 sed -i "/requires/s/, 'tox>=[^']*'//" pyproject.toml 33 ''; 34 35 build-system = [ 36 packaging 37 setuptools 38 ]; 39 40 dependencies = [ 41 docutils 42 importlib-metadata 43 importlib-resources 44 packaging 45 setuptools 46 typing-extensions 47 ]; 48 49 nativeCheckInputs = [ 50 appdirs 51 pytestCheckHook 52 ]; 53 54 pythonImportsCheck = [ "pkg_about" ]; 55 56 meta = { 57 description = "Python metadata sharing at runtime"; 58 homepage = "https://github.com/karpierz/pkg_about/"; 59 changelog = "https://github.com/karpierz/pkg_about/blob/${version}/CHANGES.rst"; 60 license = lib.licenses.zlib; 61 }; 62}