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