Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, voluptuous 7}: 8 9buildPythonPackage rec { 10 pname = "voluptuous-serialize"; 11 version = "2.6.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "home-assistant-libs"; 18 repo = "voluptuous-serialize"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-vvreXSQDkA3JkZpOKZqJgMRyObJX/cSR8r+A26h9fNE="; 21 }; 22 23 propagatedBuildInputs = [ 24 voluptuous 25 ]; 26 27 pythonImportsCheck = [ 28 "voluptuous_serialize" 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 ]; 34 35 meta = with lib; { 36 description = "Convert Voluptuous schemas to dictionaries so they can be serialized"; 37 homepage = "https://github.com/home-assistant-libs/voluptuous-serialize"; 38 changelog = "https://github.com/home-assistant-libs/voluptuous-serialize/releases/tag/${version}"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}