10 buildPythonPackage rec {
13 format = "setuptools";
15 disabled = pythonOlder "3.7";
18 inherit pname version;
19 hash = "sha256-NPifyZJZLICzmnCeE27c9B6hfyS6Mer4SjFKAsi5vO8=";
22 nativeCheckInputs = [ pytestCheckHook ];
25 # Deprecation warning using collections.abc, https://gitlab.com/ericvsmith/namedlist/-/merge_requests/1
27 url = "https://gitlab.com/ericvsmith/namedlist/-/commit/102d15b455e6f058b9c95fe135167be82b34c14a.patch";
28 hash = "sha256-IfDgiObFFSOUnAlXR/+ye8uutGaFJ/AyQvCb76iNaMM=";
32 # Test file has a `unittest.main()` at the bottom that fails the tests;
33 # py.test can run the tests without it.
35 substituteInPlace test/test_namedlist.py --replace "unittest.main()" ""
38 pythonImportsCheck = [ "namedlist" ];
41 # AttributeError: module 'collections' has no attribute 'Container'
46 description = "Similar to namedtuple, but instances are mutable";
47 homepage = "https://gitlab.com/ericvsmith/namedlist";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ ivan ];