nixpkgs/pkgs/development/python-modules/voluptuous-serialize/default.nix
Fabian Affolter 0d08004dc9 python310Packages.voluptuous-serialize: add changelog to meta
- disable on unsupported Python releases
- add myself as maintainer
- adjust inputs
2023-03-03 23:57:08 +01:00

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 ];
};
}