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