10 buildPythonPackage rec {
15 disabled = pythonOlder "3.7";
18 inherit pname version;
19 hash = "sha256-NckGmLVcaDlGCRF3F3qenAcToIYPDgSf69cmSczXe3A=";
23 substituteInPlace attrdict/merge.py \
24 --replace-fail "from collections" "from collections.abc"
25 substituteInPlace attrdict/mapping.py \
26 --replace-fail "from collections" "from collections.abc"
27 substituteInPlace attrdict/default.py \
28 --replace-fail "from collections" "from collections.abc"
29 substituteInPlace attrdict/mixins.py \
30 --replace-fail "from collections" "from collections.abc"
33 build-system = [ setuptools ];
35 dependencies = [ six ];
37 # Tests are not shipped and source is not tagged
40 pythonImportsCheck = [ "attrdict" ];
43 description = "Dict with attribute-style access";
44 homepage = "https://github.com/bcj/AttrDict";
45 changelog = "https://github.com/bcj/AttrDict/releases/tag/v${version}";
46 license = licenses.mit;