mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
0d08004dc9
- disable on unsupported Python releases - add myself as maintainer - adjust inputs
43 lines
967 B
Nix
43 lines
967 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "voluptuous-serialize";
|
|
version = "2.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = "voluptuous-serialize";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-vvreXSQDkA3JkZpOKZqJgMRyObJX/cSR8r+A26h9fNE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
voluptuous
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"voluptuous_serialize"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Convert Voluptuous schemas to dictionaries so they can be serialized";
|
|
homepage = "https://github.com/home-assistant-libs/voluptuous-serialize";
|
|
changelog = "https://github.com/home-assistant-libs/voluptuous-serialize/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|