Merge pull request #124044 from mweinelt/pinnwand

This commit is contained in:
Martin Weinelt 2021-05-22 23:23:20 +02:00 committed by GitHub
commit aec6be52dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 10 deletions

View file

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestrunner
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "token-bucket";
version = "0.2.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "falconry";
repo = pname;
rev = version;
sha256 = "0kv8j2ab4knvzik2di66bgjwjxdslm2i0hjy35kn9z0dazni585s";
};
nativeBuildInputs = [
pytestrunner
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Token Bucket Implementation for Python Web Apps";
homepage = "https://github.com/falconry/token-bucket";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -7,24 +7,16 @@
with python3.pkgs; buildPythonApplication rec {
pname = "pinnwand";
version = "1.2.3";
version = "1.3.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "supakeen";
repo = pname;
rev = "v${version}";
sha256 = "1p6agvp136q6km7gjfv8dpjn6x4ap770lqa40ifblyhw13bsrqlh";
sha256 = "046xk2y59wa0pdp7s3hp1gh8sqdw0yl4xab22r2x44iwwcyb0gy5";
};
patches = [
(fetchpatch {
# https://github.com/supakeen/pinnwand/issues/110
url = "https://github.com/supakeen/pinnwand/commit/b9e72abb7f25104f5e57248294ed9ae1dbc87240.patch";
sha256 = "098acif9ck165398bp7vwfr9g7sj9q3pcdc42z5y63m1nbf8naan";
})
];
nativeBuildInputs = [
poetry-core
];
@ -35,6 +27,7 @@ with python3.pkgs; buildPythonApplication rec {
pygments
pygments-better-html
sqlalchemy
token-bucket
toml
tornado
];

View file

@ -8267,6 +8267,8 @@ in {
toggl-cli = callPackage ../development/python-modules/toggl-cli { };
token-bucket = callPackage ../development/python-modules/token-bucket { };
tokenizers = toPythonModule (callPackage ../development/python-modules/tokenizers { });
tokenize-rt = toPythonModule (callPackage ../development/python-modules/tokenize-rt { });