From 44c10143143a4bdafcbb61a29a62d0ee4e3a1450 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Sep 2021 20:29:16 +0200 Subject: [PATCH 1/2] python3Packages.voluptuous: 0.12.1 -> 0.12.2 --- .../python-modules/voluptuous/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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 ]; }; } From 5282622cf542bf05e7892f256410402847f75276 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 28 Sep 2021 15:14:34 +0200 Subject: [PATCH 2/2] home-assistant: relax voluptuous constraint --- pkgs/servers/home-assistant/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index 27c34e10e382..e6ec3db38d2c 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"' '';