1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, importlib-metadata 6, importlib-resources 7, setuptools 8, packaging 9, tomli 10}: 11 12buildPythonPackage rec { 13 pname = "pkg-about"; 14 version = "1.0.8"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 pname = "pkg_about"; 21 inherit version; 22 extension = "zip"; 23 hash = "sha256-mb43XbKypgilagXLW33kP8wXxioNsfLtl6AEnOI1WlA="; 24 }; 25 26 # tox is listed in build requirements but not actually used to build 27 # keeping it as a requirement breaks the build unnecessarily 28 postPatch = '' 29 sed -i "/requires/s/, 'tox>=3.25.1'//" pyproject.toml 30 ''; 31 32 nativeBuildInputs = [ 33 packaging 34 setuptools 35 ]; 36 37 propagatedBuildInputs = [ 38 importlib-metadata 39 importlib-resources 40 packaging 41 setuptools 42 tomli 43 ]; 44 45 # Module has no tests 46 doCheck = false; 47 48 pythonImportsCheck = [ 49 "pkg_about" 50 ]; 51 52 meta = with lib; { 53 description = "Python metadata sharing at runtime"; 54 homepage = "https://github.com/karpierz/pkg_about/"; 55 changelog = "https://github.com/karpierz/pkg_about/blob/${version}/CHANGES.rst"; 56 license = licenses.zlib; 57 maintainers = [ teams.ororatech ]; 58 }; 59}