evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pkg-about / default.nix
blobe99565720026ce496b63c2d24ed740916994f229
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   importlib-metadata,
7   importlib-resources,
8   setuptools,
9   packaging,
10   tomli,
11   pytestCheckHook,
14 buildPythonPackage rec {
15   pname = "pkg-about";
16   version = "1.1.8";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchPypi {
22     pname = "pkg_about";
23     inherit version;
24     extension = "zip";
25     hash = "sha256-GVV3l0rU8gkxedOiMVVAt0bEqCtyO+1LSHxIKjBlbPk=";
26   };
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   '';
34   nativeBuildInputs = [
35     packaging
36     setuptools
37   ];
39   propagatedBuildInputs = [
40     importlib-metadata
41     importlib-resources
42     packaging
43     setuptools
44     tomli
45   ];
47   nativeCheckInputs = [ pytestCheckHook ];
49   pythonImportsCheck = [ "pkg_about" ];
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   };