depot/third_party/nixpkgs/pkgs/development/python-modules/voluptuous-serialize/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

42 lines
860 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytestCheckHook
, voluptuous
}:
buildPythonPackage rec {
pname = "voluptuous-serialize";
version = "2.6.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "voluptuous-serialize";
rev = "refs/tags/${version}";
hash = "sha256-vvreXSQDkA3JkZpOKZqJgMRyObJX/cSR8r+A26h9fNE=";
};
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; [ ];
};
}