blob: 3fd3c0a01782e2f3d38032cfad5a4dcb92e58903 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
buildPythonPackage,
eth-hash,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "validators";
version = "0.35.0";
pyproject = true;
src = fetchFromGitHub {
owner = "python-validators";
repo = "validators";
tag = version;
hash = "sha256-b3kjKbqmfny6YnU0rlrralTgvYT06sUpckI4EDKDleA=";
};
build-system = [ setuptools ];
optional-dependencies = {
crypto-eth-addresses = [ eth-hash ] ++ eth-hash.optional-dependencies.pycryptodome;
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "validators" ];
meta = {
description = "Python Data Validation for Humans";
homepage = "https://github.com/python-validators/validators";
changelog = "https://github.com/python-validators/validators/blob/${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|