1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 infinity, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "intervals"; 12 version = "0.9.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "kvesteri"; 17 repo = "intervals"; 18 tag = version; 19 hash = "sha256-5SwbGF7RU+2wgGnqhhFCdV89tsEIum4w7RwPU7+3MRQ="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ infinity ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "intervals" ]; 29 30 meta = { 31 description = "Tools for handling intervals (ranges of comparable objects)"; 32 homepage = "https://github.com/kvesteri/intervals"; 33 changelog = "https://github.com/kvesteri/intervals/blob/${version}/CHANGES.rst"; 34 license = lib.licenses.bsd3; 35 maintainers = with lib.maintainers; [ jherland ]; 36 }; 37}