Merge master into staging-next
This commit is contained in:
49
pkgs/development/python-modules/aiokafka/default.nix
Normal file
49
pkgs/development/python-modules/aiokafka/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, kafka-python
|
||||
, cython
|
||||
, zlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiokafka";
|
||||
version = "0.5.2";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = "aiokafka";
|
||||
rev = "v${version}";
|
||||
sha256 = "062kqsq75fi5pbpqf2a8nxm43pxpr6bwplg6bp4nv2a68r850pki";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
kafka-python
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "kafka-python==1.4.6" "kafka-python"
|
||||
'';
|
||||
|
||||
# checks require running kafka server
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Kafka integration with asyncio";
|
||||
homepage = https://aiokafka.readthedocs.org;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
45
pkgs/development/python-modules/aiorun/default.nix
Normal file
45
pkgs/development/python-modules/aiorun/default.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, pytest
|
||||
, pytestcov
|
||||
, uvloop
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiorun";
|
||||
version = "2019.11.1";
|
||||
format = "flit";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cjrh";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "04p3sci6af6qqfkcqamsqhmqqrigcwvl4bmx8yv5ppvkyq39pxi7";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestcov
|
||||
uvloop
|
||||
];
|
||||
|
||||
# allow for writable directory for darwin
|
||||
preBuild = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Boilerplate for asyncio applications";
|
||||
homepage = https://github.com/cjrh/aiorun;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
40
pkgs/development/python-modules/casbin/default.nix
Normal file
40
pkgs/development/python-modules/casbin/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, simpleeval
|
||||
, isPy27
|
||||
, coveralls
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "0.8.3";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "v${version}";
|
||||
sha256 = "1s89m62933m4wprsknwhabgg7irykrcimv80hh2zkyyslz5vbq71";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
simpleeval
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
coveralls
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
coverage run -m unittest discover -s tests -t tests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An authorization library that supports access control models like ACL, RBAC, ABAC in Python";
|
||||
homepage = https://github.com/casbin/pycasbin;
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gym";
|
||||
version = "0.15.4";
|
||||
version = "0.15.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3b930cbe1c76bbd30455b5e82ba723dea94159a5f988e927f443324bf7cc7ddd";
|
||||
sha256 = "18381e13bbd1e2f206a1b88a2af4fb87affd7d06ee7955a6e5e6a79478a9adfc";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, fetchFromGitiles
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
@@ -9,8 +9,8 @@ buildPythonPackage {
|
||||
version = "2015-06-11";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://chromium.googlesource.com/external/gyp.git";
|
||||
src = fetchFromGitiles {
|
||||
url = "https://chromium.googlesource.com/external/gyp";
|
||||
rev = "fdc7b812f99e48c00e9a487bd56751bbeae07043";
|
||||
sha256 = "1imgxsl4mr1662vsj2mlnpvvrbz71yk00w8p85vi5bkgmc6awgiz";
|
||||
};
|
||||
|
||||
@@ -85,5 +85,6 @@ buildPythonPackage rec {
|
||||
homepage = https://spacetx-starfish.readthedocs.io/en/latest/;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
broken = true; # incompatible with latest python-dateutil, scikit-image
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user