fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
946 B
Nix
40 lines
946 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "voluptuous";
|
|
version = "0.14.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alecthomas";
|
|
repo = "voluptuous";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-2a4lid9NibbvhHfs/fcyHgPRZ2HirIKuPYxMsl5oA4o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "voluptuous" ];
|
|
|
|
pytestFlagsArray = [ "voluptuous/tests/" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python data validation library";
|
|
downloadPage = "https://github.com/alecthomas/voluptuous";
|
|
homepage = "http://alecthomas.github.io/voluptuous/";
|
|
changelog = "https://github.com/alecthomas/voluptuous/blob/${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|