55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
hypothesis,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yamlloader";
|
|
version = "1.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Phynix";
|
|
repo = "yamlloader";
|
|
tag = version;
|
|
hash = "sha256-BByyKCCRZZYloxKKZVhSyH82I4hZNxCRqUddinRzYpE=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [ pyyaml ];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# TypeError: cannot pickle '_thread.RLock' object
|
|
# https://github.com/Phynix/yamlloader/issues/64
|
|
"tests/test_ordereddict.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"yaml"
|
|
"yamlloader"
|
|
];
|
|
|
|
meta = {
|
|
description = "Case-insensitive list for Python";
|
|
homepage = "https://github.com/Phynix/yamlloader";
|
|
changelog = "https://github.com/Phynix/yamlloader/releases/tag/${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sarahec ];
|
|
};
|
|
}
|