blob: 7cbe2884f387e8d5cb36e7ad8b7db779e766985e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
sortedcontainers,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "portion";
version = "2.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "AlexandreDecan";
repo = "portion";
tag = version;
hash = "sha256-K4mZn8Fm96ZBBdLTMfM9f1GKDdIrRwDRzk6ObaXSFG4=";
};
build-system = [ hatchling ];
dependencies = [ sortedcontainers ];
pythonImportsCheck = [ "portion" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
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";
license = lib.licenses.lgpl3;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|