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" ]; 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/";