2021-01-19 23:58:03 -08:00
|
|
|
{ lib
|
2018-10-16 15:09:58 -07:00
|
|
|
, buildPythonPackage
|
2021-01-06 00:39:25 -08:00
|
|
|
, fetchFromGitHub
|
2021-01-19 23:58:03 -08:00
|
|
|
, pytest-cov
|
2021-01-06 00:39:25 -08:00
|
|
|
, pytestCheckHook
|
2018-10-16 15:09:58 -07:00
|
|
|
, sortedcontainers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sortedcollections";
|
2021-01-19 23:58:03 -08:00
|
|
|
version = "2.1.0";
|
2018-10-16 15:09:58 -07:00
|
|
|
|
2021-01-06 00:39:25 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grantjenks";
|
|
|
|
repo = "python-sortedcollections";
|
|
|
|
rev = "v${version}";
|
2021-01-19 23:58:03 -08:00
|
|
|
sha256 = "sha256-GkZO8afUAgDpDjIa3dhO6nxykqrljeKldunKMODSXfg=";
|
2018-10-16 15:09:58 -07:00
|
|
|
};
|
|
|
|
|
2019-01-16 10:56:29 -08:00
|
|
|
propagatedBuildInputs = [ sortedcontainers ];
|
2018-10-16 15:09:58 -07:00
|
|
|
|
2021-01-19 23:58:03 -08:00
|
|
|
checkInputs = [
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-06 00:39:25 -08:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "sortedcollections" ];
|
2018-10-16 15:09:58 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-10-16 15:09:58 -07:00
|
|
|
description = "Python Sorted Collections";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.grantjenks.com/docs/sortedcollections/";
|
2021-01-06 00:44:46 -08:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-10-16 15:09:58 -07:00
|
|
|
};
|
|
|
|
}
|