1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-cov 5, pytestCheckHook 6, sortedcontainers 7}: 8 9buildPythonPackage rec { 10 pname = "sortedcollections"; 11 version = "2.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "grantjenks"; 15 repo = "python-sortedcollections"; 16 rev = "v${version}"; 17 sha256 = "sha256-GkZO8afUAgDpDjIa3dhO6nxykqrljeKldunKMODSXfg="; 18 }; 19 20 propagatedBuildInputs = [ sortedcontainers ]; 21 22 checkInputs = [ 23 pytest-cov 24 pytestCheckHook 25 ]; 26 27 pythonImportsCheck = [ "sortedcollections" ]; 28 29 meta = with lib; { 30 description = "Python Sorted Collections"; 31 homepage = "http://www.grantjenks.com/docs/sortedcollections/"; 32 license = with licenses; [ asl20 ]; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}