git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #115461 from fabaff/fakeredis
commitdbe34ef1947c1d637dc72f2f0c48ad2668d9f4d4 authorSandro <sandro.jaeckel@gmail.com> dateTue 9 Mar 2021, 01:56 (6 years ago) parent35586f1d811ab7
3 files changed+82−1
pkgs/development/python-modules/fakeredis/default.nix+51 pkgs/development/python-modules/lupa/default.nix+26 pkgs/top-level/python-packages.nix+5−1
pkgs/development/python-modules/fakeredis/default.nixnew file+51
@@ -0,0 +1,51 @@
1+{ lib
2+, aioredis
3+, async_generator
4+, buildPythonPackage
5+, fetchPypi
6+, hypothesis
7+, lupa
8+, pytest-asyncio
9+, pytest-mock
10+, pytestCheckHook
11+, pythonOlder
12+, redis
13+, six
14+, sortedcontainers
15+}:
16+
17+buildPythonPackage rec {
18+ pname = "fakeredis";
19+ version = "1.4.5";
20+ disabled = pythonOlder "3.5";
21+
22+ src = fetchPypi {
23+ inherit pname version;
24+ sha256 = "0slb23zxn47a4z8b7jq7gq40g4zsn52y9h29zdqs29b85394gjq1";
25+ };
26+
27+ propagatedBuildInputs = [
28+ aioredis
29+ lupa
30+ redis
31+ six
32+ sortedcontainers
33+ ];
34+
35+ checkInputs = [
36+ async_generator
37+ hypothesis
38+ pytest-asyncio
39+ pytest-mock
40+ pytestCheckHook
41+ ];
42+
43+ pythonImportsCheck = [ "fakeredis" ];
44+
45+ meta = with lib; {
46+ description = "Fake implementation of Redis API";
47+ homepage = "https://github.com/jamesls/fakeredis";
48+ license = with licenses; [ mit ];
49+ maintainers = with maintainers; [ fab ];
50+ };
51+}
pkgs/development/python-modules/lupa/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib
2+, buildPythonPackage
3+, cython
4+, fetchPypi
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "lupa";
9+ version = "1.9";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "13ifv0nxbf70xg69sp49j484m8cnid7rgh8f94pgfb50dj01vqd3";
14+ };
15+
16+ nativeBuildInputs = [ cython ];
17+
18+ pythonImportsCheck = [ "lupa" ];
19+
20+ meta = with lib; {
21+ description = "Lua in Python";
22+ homepage = "https://github.com/scoder/lupa";
23+ license = with licenses; [ mit ];
24+ maintainers = with maintainers; [ fab ];
25+ };
26+}
pkgs/top-level/python-packages.nix+5−1
@@ -2213,9 +2213,11 @@ in {
22132213
22142214 fake_factory = callPackage ../development/python-modules/fake_factory { };
22152215
2216+ fake-useragent = callPackage ../development/python-modules/fake-useragent { };
2217+
22162218 faker = callPackage ../development/python-modules/faker { };
22172219
2218− fake-useragent = callPackage ../development/python-modules/fake-useragent { };
2220+ fakeredis = callPackage ../development/python-modules/fakeredis { };
22192221
22202222 falcon = callPackage ../development/python-modules/falcon { };
22212223
@@ -3927,6 +3929,8 @@ in {
39273929
39283930 luftdaten = callPackage ../development/python-modules/luftdaten { };
39293931
3932+ lupa = callPackage ../development/python-modules/lupa { };
3933+
39303934 lxc = callPackage ../development/python-modules/lxc { };
39313935
39323936 lxml = callPackage ../development/python-modules/lxml { inherit (pkgs) libxml2 libxslt zlib; };