mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 02:53:55 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
759 B
Nix
32 lines
759 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flit
|
|
, hypothesis
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "validobj";
|
|
version = "0.6";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-BvnHn0Erk87Ce3tYwYf0tBwRJMrG19Af/Y568VJ02uo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit ];
|
|
|
|
nativeCheckInputs = [ hypothesis pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|