Update aider (#375634)
[NixPkgs.git] / pkgs / development / python-modules / attrdict / default.nix
blobb20f0065dfe5726ef4efd83e92a980a0966b3e68
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   setuptools,
7   six,
8 }:
10 buildPythonPackage rec {
11   pname = "attrdict";
12   version = "2.0.1";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-NckGmLVcaDlGCRF3F3qenAcToIYPDgSf69cmSczXe3A=";
20   };
22   postPatch = ''
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"
31   '';
33   build-system = [ setuptools ];
35   dependencies = [ six ];
37   # Tests are not shipped and source is not tagged
38   doCheck = false;
40   pythonImportsCheck = [ "attrdict" ];
42   meta = with lib; {
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;
47     maintainers = [ ];
48   };