Merge pull request #124044 from mweinelt/pinnwand
This commit is contained in:
commit
aec6be52dd
34
pkgs/development/python-modules/token-bucket/default.nix
Normal file
34
pkgs/development/python-modules/token-bucket/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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
|
||||
];
|
||||
|
@ -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 { });
|
||||
|
Loading…
Reference in New Issue
Block a user