My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/sortedcontainers/default.nix

39 lines
909 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
let
sortedcontainers = buildPythonPackage rec {
pname = "sortedcontainers";
version = "2.4.0";
src = fetchFromGitHub {
owner = "grantjenks";
repo = "python-sortedcontainers";
rev = "v${version}";
sha256 = "sha256-YRbSM2isWi7AzfquFvuZBlpEMNUnBJTBLBn0/XYVHKQ=";
};
doCheck = false;
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "sortedcontainers" ];
passthru.tests = {
pytest = sortedcontainers.overridePythonAttrs (_: { doCheck = true; });
};
meta = with lib; {
description = "Python Sorted Container Types: SortedList, SortedDict, and SortedSet";
homepage = "https://grantjenks.com/docs/sortedcontainers/";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
};
in
sortedcontainers