2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, flit
|
|
|
|
, hypothesis
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "validobj";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.7";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "cbij55HZKVLO3MLoDTtFT2YYNVZwbNaYEk+35gIcGdo=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flit ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ hypothesis pytestCheckHook ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "validobj" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Validobj is library that takes semistructured data (for example JSON and YAML configuration files) and converts it to more structured Python objects";
|
|
|
|
homepage = "https://github.com/Zaharid/validobj";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|