Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2020-04-29 08:35:47 +02:00
144 changed files with 1031 additions and 1452 deletions

View File

@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, mock
}:
buildPythonPackage rec {
pname = "auth0-python";
version = "3.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "c2fdc3ff230638a2776d2b3761e787ca93dc33a26f841504fc260f947256f453";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
mock
];
meta = with lib; {
description = "Auth0 Python SDK";
homepage = "https://github.com/auth0/auth0-python";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -1,30 +1,36 @@
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, fetchFromGitHub
, pytest
, unittest2
, future
, numpy
, pillow
, scipy
, scikitlearn
, scikitimage
, threadpoolctl
}:
buildPythonPackage rec {
pname = "batchgenerators";
version = "0.19.7";
version = "0.20.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0qqzwqf5r0q6jh8avz4f9kf8x96crvdnkznhf24pbm0faf8yk67q";
src = fetchFromGitHub {
owner = "MIC-DKFZ";
repo = pname;
rev = "v${version}";
sha256 = "0cc3i4wznqb7lk8n6jkprvkpsby6r7khkxqwn75k8f01mxgjfpvf";
};
propagatedBuildInputs = [ future numpy scipy scikitlearn scikitimage threadpoolctl ];
propagatedBuildInputs = [
future numpy pillow scipy scikitlearn scikitimage threadpoolctl
];
checkInputs = [ pytest unittest2 ];
checkPhase = "pytest tests";

View File

@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
, future
, pyyaml
, jsonlines
}:
buildPythonPackage rec {
pname = "cloudflare";
version = "2.6.5";
src = fetchPypi {
inherit pname version;
sha256 = "4463d5f2927338384169315f34c2a8ac0840075b59489f8d1d773b91caba6c39";
};
propagatedBuildInputs = [
requests
future
pyyaml
jsonlines
];
# no tests associated with package
doCheck = false;
pythonImportsCheck = [ "CloudFlare" ];
meta = with lib; {
description = "Python wrapper for the Cloudflare v4 API";
homepage = "https://github.com/cloudflare/python-cloudflare";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}

View File

@@ -1,18 +1,12 @@
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pybind11}:
{stdenv, buildPythonPackage, fetchFromGitHub, numpy, pkgs, pybind11 }:
buildPythonPackage rec {
pname = "fasttext";
version = "0.9.1";
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "fastText";
rev = "v${version}";
sha256 = "1cbzz98qn8aypp4r5kwwwc9wiq5bwzv51kcsb15xjfs9lz8h3rii";
};
inherit (pkgs.fasttext) pname version src;
buildInputs = [ pybind11 ];
pythonImportsCheck = [ "fasttext" ];
propagatedBuildInputs = [ numpy ];
preBuild = ''

View File

@@ -1,22 +1,16 @@
{ lib, buildPythonPackage, fetchFromGitHub, python, protobuf3_6 }:
{ lib, buildPythonPackage, fetchFromGitHub, python }:
let
py = python.override {
packageOverrides = self: super: {
protobuf = super.protobuf.override {
protobuf = protobuf3_6;
};
};
};
py = python;
in buildPythonPackage rec {
pname = "mysql-connector";
version = "8.0.19";
version = "8.0.20";
src = fetchFromGitHub {
owner = "mysql";
repo = "mysql-connector-python";
rev = version;
sha256 = "1jscmc5s7mwx43gvxjlqc30ylp5jjpmkqx7s3b9nllbh926p3ixg";
sha256 = "1pm98mjbkhwawhni98cjhp0gg3mim75i0sdby77vzrlcrxajxkbw";
};
propagatedBuildInputs = with py.pkgs; [ protobuf dnspython ];
@@ -33,6 +27,7 @@ in buildPythonPackage rec {
implements the DB API v2.0 specification.
'';
homepage = "https://github.com/mysql/mysql-connector-python";
changelog = "https://raw.githubusercontent.com/mysql/mysql-connector-python/${version}/CHANGES.txt";
license = [ lib.licenses.gpl2 ];
maintainers = with lib.maintainers; [ primeos ];
};

View File

@@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, httpserver
, libftdi1
, libusb1
}:
buildPythonPackage rec {
pname = "pylibftdi";
version = "0.18.1";
src = fetchPypi {
inherit pname version;
sha256 = "17c5h4xz1grynbpffngjflk3dlw2g2zbhkwb7h5v4n9rjdv41l5x";
};
propagatedBuildInputs = [
httpserver
libftdi1
libusb1
];
postPatch = ''
substituteInPlace pylibftdi/driver.py \
--replace "self._load_library('libusb')" "cdll.LoadLibrary('${libusb1.out}/lib/libusb1.so')" \
--replace "self._load_library('libftdi')" "cdll.LoadLibrary('${libftdi1.out}/lib/libftdi1.so')"
'';
pythonImportsCheck = [ "pylibftdi" ];
meta = with lib; {
homepage = "https://bitbucket.org/codedstructure/pylibftdi/src/default/";
description = "Minimal pythonic wrapper to Intra2net's libftdi driver for FTDI's USB devices";
license = licenses.mit;
maintainers = with maintainers; [ matthuszagh ];
};
}