mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +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.
38 lines
793 B
Nix
38 lines
793 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, pytestCheckHook
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "voluptuous-serialize";
|
|
version = "2.5.0";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-8rWMz8tBanxHdU/F4HhBxxz3ltqbdRoP4JED2dmZfTk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ voluptuous ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
voluptuous
|
|
];
|
|
|
|
pythonImportsCheck = [ "voluptuous_serialize" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/home-assistant-libs/voluptuous-serialize";
|
|
license = licenses.asl20;
|
|
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|