Files
nixpkgs/pkgs/development/python-modules/intervaltree/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
727 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
sortedcontainers,
}:
buildPythonPackage rec {
version = "3.1.0";
pname = "intervaltree";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "902b1b88936918f9b2a19e0e5eb7ccb430ae45cde4f39ea4b36932920d33952d";
};
build-system = [ setuptools ];
dependencies = [ sortedcontainers ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
rm -rf build
'';
meta = {
description = "Editable interval tree data structure for Python 2 and 3";
homepage = "https://github.com/chaimleib/intervaltree";
license = [ lib.licenses.asl20 ];
maintainers = [ lib.maintainers.bennofs ];
};
}