mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 05:19:00 +02:00
Merge pull request #115461 from fabaff/fakeredis
This commit is contained in:
commit
dbe34ef194
51
pkgs/development/python-modules/fakeredis/default.nix
Normal file
51
pkgs/development/python-modules/fakeredis/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{ lib
|
||||||
|
, aioredis
|
||||||
|
, async_generator
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, hypothesis
|
||||||
|
, lupa
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, redis
|
||||||
|
, six
|
||||||
|
, sortedcontainers
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "fakeredis";
|
||||||
|
version = "1.4.5";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0slb23zxn47a4z8b7jq7gq40g4zsn52y9h29zdqs29b85394gjq1";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aioredis
|
||||||
|
lupa
|
||||||
|
redis
|
||||||
|
six
|
||||||
|
sortedcontainers
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
async_generator
|
||||||
|
hypothesis
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "fakeredis" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Fake implementation of Redis API";
|
||||||
|
homepage = "https://github.com/jamesls/fakeredis";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/development/python-modules/lupa/default.nix
Normal file
26
pkgs/development/python-modules/lupa/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, cython
|
||||||
|
, fetchPypi
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "lupa";
|
||||||
|
version = "1.9";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "13ifv0nxbf70xg69sp49j484m8cnid7rgh8f94pgfb50dj01vqd3";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cython ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "lupa" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Lua in Python";
|
||||||
|
homepage = "https://github.com/scoder/lupa";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2213,9 +2213,11 @@ in {
|
||||||
|
|
||||||
fake_factory = callPackage ../development/python-modules/fake_factory { };
|
fake_factory = callPackage ../development/python-modules/fake_factory { };
|
||||||
|
|
||||||
|
fake-useragent = callPackage ../development/python-modules/fake-useragent { };
|
||||||
|
|
||||||
faker = callPackage ../development/python-modules/faker { };
|
faker = callPackage ../development/python-modules/faker { };
|
||||||
|
|
||||||
fake-useragent = callPackage ../development/python-modules/fake-useragent { };
|
fakeredis = callPackage ../development/python-modules/fakeredis { };
|
||||||
|
|
||||||
falcon = callPackage ../development/python-modules/falcon { };
|
falcon = callPackage ../development/python-modules/falcon { };
|
||||||
|
|
||||||
|
@ -3927,6 +3929,8 @@ in {
|
||||||
|
|
||||||
luftdaten = callPackage ../development/python-modules/luftdaten { };
|
luftdaten = callPackage ../development/python-modules/luftdaten { };
|
||||||
|
|
||||||
|
lupa = callPackage ../development/python-modules/lupa { };
|
||||||
|
|
||||||
lxc = callPackage ../development/python-modules/lxc { };
|
lxc = callPackage ../development/python-modules/lxc { };
|
||||||
|
|
||||||
lxml = callPackage ../development/python-modules/lxml { inherit (pkgs) libxml2 libxslt zlib; };
|
lxml = callPackage ../development/python-modules/lxml { inherit (pkgs) libxml2 libxslt zlib; };
|
||||||
|
|
Loading…
Reference in a new issue