1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 flit-core, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "ordered-set"; 12 version = "4.1.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-aUqORMh2V8WSku3nKJHrkdNBMfZTFGOqswCRkcdzZKg="; 20 }; 21 22 nativeBuildInputs = [ flit-core ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "ordered_set" ]; 27 28 meta = with lib; { 29 description = "MutableSet that remembers its order, so that every entry has an index"; 30 homepage = "https://github.com/rspeer/ordered-set"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ MostAwesomeDude ]; 33 }; 34}