504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, importlib-metadata
|
|
, importlib-resources
|
|
, setuptools
|
|
, packaging
|
|
, tomli
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pkg-about";
|
|
version = "1.0.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "pkg_about";
|
|
inherit version;
|
|
extension = "zip";
|
|
hash = "sha256-mb43XbKypgilagXLW33kP8wXxioNsfLtl6AEnOI1WlA=";
|
|
};
|
|
|
|
# tox is listed in build requirements but not actually used to build
|
|
# keeping it as a requirement breaks the build unnecessarily
|
|
postPatch = ''
|
|
sed -i "/requires/s/, 'tox>=3.25.1'//" pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
packaging
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
importlib-metadata
|
|
importlib-resources
|
|
packaging
|
|
setuptools
|
|
tomli
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pkg_about"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python metadata sharing at runtime";
|
|
homepage = "https://github.com/karpierz/pkg_about/";
|
|
changelog = "https://github.com/karpierz/pkg_about/blob/${version}/CHANGES.rst";
|
|
license = licenses.zlib;
|
|
maintainers = teams.ororatech.members;
|
|
};
|
|
}
|