diff --git a/pkgs/development/python-modules/voluptuous/default.nix b/pkgs/development/python-modules/voluptuous/default.nix index 9882724fbb63..cc9d772eda17 100644 --- a/pkgs/development/python-modules/voluptuous/default.nix +++ b/pkgs/development/python-modules/voluptuous/default.nix @@ -1,22 +1,32 @@ -{ lib, buildPythonPackage, fetchPypi, nose }: +{ lib +, buildPythonPackage +, fetchPypi +, nose +}: buildPythonPackage rec { pname = "voluptuous"; - version = "0.12.1"; + version = "0.12.2"; src = fetchPypi { inherit pname version; - sha256 = "0js4avmhmmys78z376xk1w9305hq5nad8zqrnksgmpc1j90p4db6"; + sha256 = "sha256-TbGsUHnbkkmCDUnIkctGYKb4yuNQSRIQq850H6v1ZRM="; }; - checkInputs = [ nose ]; + checkInputs = [ + nose + ]; + checkPhase = '' nosetests ''; + pythonImportsCheck = [ "voluptuous" ]; + meta = with lib; { - description = "Voluptuous is a Python data validation library"; + description = "Python data validation library"; homepage = "http://alecthomas.github.io/voluptuous/"; license = licenses.bsd3; + maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index cb302d5a5c46..0239fb12e054 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -177,7 +177,8 @@ in with py.pkgs; buildPythonApplication rec { --replace "cryptography==3.3.2" "cryptography" \ --replace "pip>=8.0.3,<20.3" "pip" \ --replace "requests==2.25.1" "requests>=2.25.1" \ - --replace "ruamel.yaml==0.15.100" "ruamel.yaml" + --replace "ruamel.yaml==0.15.100" "ruamel.yaml" \ + --replace "voluptuous==0.12.1" "voluptuous==0.12.2" substituteInPlace tests/test_config.py --replace '"/usr"' '"/build/media"' '';