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.1.0";
14 pyproject = true;
15
16 src = fetchPypi {
17 pname = "jaraco_collections";
18 inherit version;
19 hash = "sha256-DkgpQJ05rRikCqZ1T+4nZ/TZcwxLpm3J34nx0nVplMI=";
20 };
21
22 postPatch = ''
23 # break dependency cycle
24 sed -i "/'jaraco.text',/d" setup.cfg
25 '';
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 dependencies = [
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 = [ ];
49 };
50}