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