depot/third_party/nixpkgs/pkgs/development/python-modules/portion/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

37 lines
897 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
sortedcontainers,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "portion";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "AlexandreDecan";
repo = "portion";
rev = "refs/tags/${version}";
hash = "sha256-TBCnlkGZZ/3tWEojxDGNYcXtYHhrooJkaWBsRkadXEE=";
};
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 ];
};
}