Merge pull request #133335 from fabaff/bump-clize

python3Packages.clize: 4.1.1 -> 4.2.0
This commit is contained in:
Sandro 2021-08-10 15:25:30 +02:00 committed by GitHub
commit e7e3971b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View file

@ -7,6 +7,7 @@
python3Packages.buildPythonApplication rec {
pname = "zerobin";
version = "1.0.5";
src = fetchFromGitHub {
owner = "Tygs";
repo = "0bin";
@ -21,6 +22,7 @@ python3Packages.buildPythonApplication rec {
python3Packages.pyscss
nodePackages.uglify-js
];
propagatedBuildInputs = with python3Packages; [
appdirs
beaker
@ -30,16 +32,19 @@ python3Packages.buildPythonApplication rec {
lockfile
paste
];
prePatch = ''
# replace /bin/bash in compress.sh
patchShebangs .
# relax version constraints of some dependencies
substituteInPlace setup.cfg \
--replace "clize==4.1.1" "clize" \
--replace "bleach==3.1.5" "bleach>=3.1.5,<4" \
--replace "bottle==0.12.18" "bottle>=0.12.18,<1" \
--replace "Paste==3.4.3" "Paste>=3.4.3,<4"
'';
buildPhase = ''
runHook preBuild
doit build
@ -51,6 +56,8 @@ python3Packages.buildPythonApplication rec {
# See https://github.com/NixOS/nixpkgs/pull/98734#discussion_r495823510
doCheck = false;
pythonImportsCheck = [ "zerobin" ];
meta = with lib; {
description = "A client side encrypted pastebin";
homepage = "https://0bin.net/";

View file

@ -15,18 +15,13 @@
buildPythonPackage rec {
pname = "clize";
version = "4.1.1";
version = "4.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187";
sha256 = "06p47i6hri006v7xbx7myj02as1a6f34rv88wfa9rb067p13nmyz";
};
# Remove overly restrictive version constraints
postPatch = ''
substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs"
'';
checkInputs = [
pytestCheckHook
python-dateutil
@ -49,5 +44,6 @@ buildPythonPackage rec {
description = "Command-line argument parsing for Python";
homepage = "https://github.com/epsy/clize";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}