depot/third_party/nixpkgs/pkgs/development/python-modules/portion/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

37 lines
897 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
sortedcontainers,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "portion";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "AlexandreDecan";
repo = "portion";
rev = "refs/tags/${version}";
hash = "sha256-sNOieFenrWh6iDXCyCBedx+qIsS+daAr+WVBpkc8yVQ=";
};
build-system = [ setuptools ];
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 ];
};
}