From 240cf37b505554ba7466993b7b11682ad2dcec74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 8 Aug 2021 06:44:13 +0200 Subject: [PATCH 1/2] python39Packages.awslambdaric: move depedency patching to right phase --- pkgs/development/python-modules/awslambdaric/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/awslambdaric/default.nix b/pkgs/development/python-modules/awslambdaric/default.nix index 6bb6702b1e2..f5d282ac0ee 100644 --- a/pkgs/development/python-modules/awslambdaric/default.nix +++ b/pkgs/development/python-modules/awslambdaric/default.nix @@ -13,6 +13,11 @@ buildPythonPackage rec { sha256 = "120qar8iaxj6dmnhjw1c40n2w06f1nyxy57dwh06xdiany698fg4"; }; + postPatch = '' + substituteInPlace requirements/base.txt \ + --replace 'simplejson==3' 'simplejson~=3' + ''; + propagatedBuildInputs = [ simplejson ]; nativeBuildInputs = [ autoconf automake cmake libtool perl ]; @@ -21,10 +26,6 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - preBuild = '' - substituteInPlace requirements/base.txt --replace 'simplejson==3' 'simplejson~=3' - ''; - checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "awslambdaric" "runtime_client" ]; From 90832a038710a2d925626a4f5230f5ccbead89c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 8 Aug 2021 06:50:00 +0200 Subject: [PATCH 2/2] python39Packages.xml-marshaller: add pythonImportsCheck --- pkgs/development/python-modules/xml-marshaller/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xml-marshaller/default.nix b/pkgs/development/python-modules/xml-marshaller/default.nix index 748b6875620..30300c61045 100644 --- a/pkgs/development/python-modules/xml-marshaller/default.nix +++ b/pkgs/development/python-modules/xml-marshaller/default.nix @@ -10,13 +10,15 @@ buildPythonPackage rec { version = "1.0.2"; src = fetchPypi { - inherit version; pname = "xml_marshaller"; + inherit version; sha256 = "sha256-QvBALLDD8o5nZQ5Z4bembhadK6jcydWKQpJaSmGqqJM="; }; propagatedBuildInputs = [ lxml six ]; + pythonImportsCheck = [ "xml_marshaller" ]; + meta = with lib; { description = "This module allows one to marshal simple Python data types into a custom XML format."; homepage = "https://www.python.org/community/sigs/current/xml-sig/";