2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
sortedcontainers,
|
|
|
|
pytestCheckHook,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "portion";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.5.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AlexandreDecan";
|
|
|
|
repo = "portion";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-sNOieFenrWh6iDXCyCBedx+qIsS+daAr+WVBpkc8yVQ=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ sortedcontainers ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "portion" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
description = "Portion, a Python library providing data structure and operations for intervals";
|
|
|
|
homepage = "https://github.com/AlexandreDecan/portion";
|
|
|
|
changelog = "https://github.com/AlexandreDecan/portion/blob/${src.rev}/CHANGELOG.md";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
}
|