mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
python311Packages.portion: init at 2.4.2
This commit is contained in:
parent
11733d0047
commit
b22991a6b1
49
pkgs/development/python-modules/portion/default.nix
Normal file
49
pkgs/development/python-modules/portion/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, wheel
|
||||
, sortedcontainers
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "portion";
|
||||
version = "2.4.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AlexandreDecan";
|
||||
repo = "portion";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-URoyuE0yivUqPjJZbvATkAnTxicY4F2eiJ16rIUdY3Y=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
sortedcontainers
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"portion"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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 = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ GaetanLepage ];
|
||||
};
|
||||
}
|
@ -10248,6 +10248,8 @@ self: super: with self; {
|
||||
|
||||
portend = callPackage ../development/python-modules/portend { };
|
||||
|
||||
portion = callPackage ../development/python-modules/portion { };
|
||||
|
||||
port-for = callPackage ../development/python-modules/port-for { };
|
||||
|
||||
portpicker = callPackage ../development/python-modules/portpicker { };
|
||||
|
Loading…
Reference in New Issue
Block a user