Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jaraco-collections / default.nix
blob1d8f9a8f22417bb7c05ef59defa534791931bad1
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , setuptools
5 , setuptools-scm
6 , jaraco-classes
7 , jaraco-text
8 }:
10 buildPythonPackage rec {
11   pname = "jaraco-collections";
12   version = "4.3.0";
13   format = "pyproject";
15   src = fetchPypi {
16     pname = "jaraco.collections";
17     inherit version;
18     hash = "sha256-dP/CP8z+5N4KLr9VajNnW2o8AD1jNZR9MSKgvIgiyOQ=";
19   };
21   postPatch = ''
22     # break dependency cycle
23     sed -i "/'jaraco.text',/d" setup.cfg
24   '';
26   nativeBuildInputs = [
27     setuptools
28     setuptools-scm
29   ];
31   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
33   propagatedBuildInputs = [
34     jaraco-classes
35     jaraco-text
36   ];
38   pythonNamespaces = [ "jaraco" ];
40   doCheck = false;
42   pythonImportsCheck = [ "jaraco.collections" ];
44   meta = with lib; {
45     description = "Models and classes to supplement the stdlib 'collections' module";
46     homepage = "https://github.com/jaraco/jaraco.collections";
47     changelog = "https://github.com/jaraco/jaraco.collections/blob/v${version}/NEWS.rst";
48     license = licenses.mit;
49     maintainers = with maintainers; [ ];
50   };