10 buildPythonPackage rec {
15 src = fetchFromGitHub {
16 owner = "AlexandreDecan";
18 rev = "refs/tags/${version}";
19 hash = "sha256-TBCnlkGZZ/3tWEojxDGNYcXtYHhrooJkaWBsRkadXEE=";
22 build-system = [ setuptools ];
24 dependencies = [ sortedcontainers ];
26 pythonImportsCheck = [ "portion" ];
28 nativeCheckInputs = [ pytestCheckHook ];
31 description = "Portion, a Python library providing data structure and operations for intervals";
32 homepage = "https://github.com/AlexandreDecan/portion";
33 changelog = "https://github.com/AlexandreDecan/portion/blob/${src.rev}/CHANGELOG.md";
34 license = lib.licenses.lgpl3;
35 maintainers = with lib.maintainers; [ GaetanLepage ];