nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 flit-core,
6 hypothesis,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "validobj";
12 version = "1.6";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-dXUvInNYkl10zdGQhJ6h1JqCNlZ+VsvwnEMb2xj6qOA=";
18 };
19
20 build-system = [ flit-core ];
21
22 nativeCheckInputs = [
23 hypothesis
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [ "validobj" ];
28
29 meta = {
30 description = "Library that takes semistructured data (for example JSON and YAML configuration files) and converts it to more structured Python objects";
31 homepage = "https://github.com/Zaharid/validobj";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ veprbl ];
34 };
35}