48 lines
953 B
Nix
48 lines
953 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "orderly-set";
|
|
version = "5.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "seperman";
|
|
repo = "orderly-set";
|
|
tag = version;
|
|
hash = "sha256-0B8qnXU6oET1J933uTVDf2XIHwNzecxQ3FiP7EMnxQc=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"orderly_set"
|
|
];
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
disabledTests = [
|
|
# Statically analyzes types, can be disabled so that mypy won't be needed.
|
|
"test_typing_mypy"
|
|
];
|
|
|
|
meta = {
|
|
description = "Multiple implementations of Ordered Set";
|
|
homepage = "https://github.com/seperman/orderly-set";
|
|
changelog = "https://github.com/seperman/orderly-set/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
};
|
|
}
|