nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 six, 7}: 8 9buildPythonPackage rec { 10 pname = "attrdict"; 11 version = "2.0.1"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-NckGmLVcaDlGCRF3F3qenAcToIYPDgSf69cmSczXe3A="; 17 }; 18 19 postPatch = '' 20 substituteInPlace attrdict/merge.py \ 21 --replace-fail "from collections" "from collections.abc" 22 substituteInPlace attrdict/mapping.py \ 23 --replace-fail "from collections" "from collections.abc" 24 substituteInPlace attrdict/default.py \ 25 --replace-fail "from collections" "from collections.abc" 26 substituteInPlace attrdict/mixins.py \ 27 --replace-fail "from collections" "from collections.abc" 28 ''; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ six ]; 33 34 # Tests are not shipped and source is not tagged 35 doCheck = false; 36 37 pythonImportsCheck = [ "attrdict" ]; 38 39 meta = { 40 description = "Dict with attribute-style access"; 41 homepage = "https://github.com/bcj/AttrDict"; 42 changelog = "https://github.com/bcj/AttrDict/releases/tag/v${version}"; 43 license = lib.licenses.mit; 44 maintainers = [ ]; 45 }; 46}