1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 setuptools-scm,
7 jaraco-classes,
8 jaraco-text,
9}:
10
11buildPythonPackage rec {
12 pname = "jaraco-collections";
13 version = "5.0.1";
14 format = "pyproject";
15
16 src = fetchPypi {
17 pname = "jaraco.collections";
18 inherit version;
19 hash = "sha256-gIYxsXS4Sk4qWSSQ1i9i38FdgEeg9xVyYJjcQ7gabPo=";
20 };
21
22 postPatch = ''
23 # break dependency cycle
24 sed -i "/'jaraco.text',/d" setup.cfg
25 '';
26
27 nativeBuildInputs = [
28 setuptools
29 setuptools-scm
30 ];
31
32 propagatedBuildInputs = [
33 jaraco-classes
34 jaraco-text
35 ];
36
37 pythonNamespaces = [ "jaraco" ];
38
39 doCheck = false;
40
41 pythonImportsCheck = [ "jaraco.collections" ];
42
43 meta = with lib; {
44 description = "Models and classes to supplement the stdlib 'collections' module";
45 homepage = "https://github.com/jaraco/jaraco.collections";
46 changelog = "https://github.com/jaraco/jaraco.collections/blob/v${version}/NEWS.rst";
47 license = licenses.mit;
48 maintainers = with maintainers; [ ];
49 };
50}