1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hypothesis 5, poetry-core 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "collections-extended"; 12 version = "2.0.2"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "mlenzen"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-cK13+CQUELKSiLpG747+C+RB5b6luu0mWLLXTT+uGH4="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 ]; 27 28 checkInputs = [ 29 hypothesis 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "collections_extended" 35 ]; 36 37 meta = with lib; { 38 description = "Extra Python Collections - bags (multisets), setlists (unique list/indexed set), RangeMap and IndexedDict"; 39 homepage = "https://github.com/mlenzen/collections-extended"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ exarkun ]; 42 }; 43}