f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
38 lines
696 B
Nix
38 lines
696 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "schema";
|
|
version = "0.7.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-faVTq9KVihncJUfDiM3lM5izkZYXWpvlnqHK9asKGAc=";
|
|
};
|
|
|
|
|
|
pythonRemoveDeps = [ "contextlib2" ];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "schema" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for validating Python data structures";
|
|
homepage = "https://github.com/keleshev/schema";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tobim ];
|
|
};
|
|
}
|