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