Merge pull request #169382 from mweinelt/python-fixes
Random python fixes
This commit is contained in:
commit
cd7dad8b9f
15 changed files with 148 additions and 52 deletions
|
@ -24,13 +24,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "dragonfly";
|
||||
version = "0.32.0";
|
||||
version = "0.35.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dictation-toolbox";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "BUbIhc8as/DVx8/4VeQS9emOLGcWFujNCxesSEEBqKQ=";
|
||||
sha256 = "sha256-sqEEEr5/KG3cn4rmOGJt9zMNAjeLO6h3NJgg0EyewrM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -62,6 +62,11 @@ buildPythonPackage rec {
|
|||
wtf-peewee
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Incompatible with werkzeug 2.1
|
||||
"test_mockview"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests have additional requirements
|
||||
"flask_admin/tests/geoa/test_basic.py"
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-bcrypt";
|
||||
version = "0.7.1";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "maxcountryman";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0036gag3nj7fzib23lbbpwhlrn1s0kkrfwk5pd90y4cjcfqh8z9x";
|
||||
sha256 = "sha256-WlIholi/nzq6Ikc0LS6FhG0Q5Kz0kvvAlA2YJ7EksZ4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -23,9 +23,15 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} test_bcrypt.py
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"flask_bcrypt"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Brcrypt hashing for Flask";
|
||||
homepage = "https://github.com/maxcountryman/flask-bcrypt";
|
||||
|
|
|
@ -1,19 +1,29 @@
|
|||
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, flask }:
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, flask, mock, python }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-SeaSurf";
|
||||
version = "0.3.0";
|
||||
version = "1.1.1";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "maxcountryman";
|
||||
repo = "flask-seasurf";
|
||||
rev = version;
|
||||
sha256 = "02hsvppsz1d93v641f14fdnd22gbc12ilc9k9kn7wl119n5s3pd8";
|
||||
sha256 = "sha256-L/ZUEqqHmsyXG5eShcITII36ttwQlZN5GBngo+GcCdw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask ];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "flask_seasurf" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -34,6 +34,12 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# tests require live postgis database
|
||||
"--deselect=tests/test_pickle.py::TestPickle::test_pickle_unpickle"
|
||||
"--deselect=tests/gallery/test_specific_compilation.py::test_specific_compilation"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# tests require live postgis database
|
||||
"tests/gallery/test_decipher_raster.py"
|
||||
|
@ -41,6 +47,11 @@ buildPythonPackage rec {
|
|||
"tests/gallery/test_summarystatsagg.py"
|
||||
"tests/gallery/test_type_decorator.py"
|
||||
"tests/test_functional.py"
|
||||
"tests/test_functional_postgresql.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"geoalchemy2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "gym";
|
||||
version = "0.22.0";
|
||||
version = "0.21.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openai";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-JbPWLuQGo+fErUlCKKpMwWdu0KvXBDuH2MeAHdJCTgM=";
|
||||
rev = "v${version}";
|
||||
sha256 = "12b545xz0r2g4z5r7f8amxl7nm0lqymkzwcwhg1bni9h0sxwpv6c";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
, cmake
|
||||
, ush
|
||||
, requests
|
||||
, six
|
||||
, numpy
|
||||
, cffi
|
||||
, openfst
|
||||
|
@ -12,6 +13,11 @@
|
|||
, callPackage
|
||||
}:
|
||||
|
||||
#
|
||||
# Maintainer note: only in-tree dependant is `dragonfly`, try to
|
||||
# update the two alongside eachother.
|
||||
#
|
||||
|
||||
let
|
||||
kaldi = callPackage ./fork.nix { };
|
||||
in
|
||||
|
@ -48,7 +54,7 @@ buildPythonPackage rec {
|
|||
|
||||
buildInputs = [ openfst kaldi ];
|
||||
nativeBuildInputs = [ scikit-build cmake ];
|
||||
propagatedBuildInputs = [ ush requests numpy cffi ];
|
||||
propagatedBuildInputs = [ ush requests numpy cffi six ];
|
||||
|
||||
doCheck = false; # no tests exist
|
||||
|
||||
|
|
69
pkgs/development/python-modules/kbcstorage/default.nix
Normal file
69
pkgs/development/python-modules/kbcstorage/default.nix
Normal file
|
@ -0,0 +1,69 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build
|
||||
, setuptools-scm
|
||||
|
||||
# propagates
|
||||
, azure-storage-blob
|
||||
, boto3
|
||||
, requests
|
||||
|
||||
# tests
|
||||
, responses
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sapi-python-client";
|
||||
version = "0.4.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keboola";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "189dzj06vzp7366h2qsfvbjmw9qgl7jbp8syhynn9yvrjqp4k8h3";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
azure-storage-blob
|
||||
boto3
|
||||
requests
|
||||
];
|
||||
|
||||
# requires API token and an active keboola bucket
|
||||
# ValueError: Root URL is required.
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [
|
||||
responses
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m unittest discover
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"kbcstorage"
|
||||
"kbcstorage.buckets"
|
||||
"kbcstorage.client"
|
||||
"kbcstorage.tables"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Keboola Connection Storage API client";
|
||||
homepage = "https://github.com/keboola/sapi-python-client";
|
||||
maintainers = with maintainers; [ mrmebelman ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -5,6 +5,7 @@
|
|||
, numpy
|
||||
, setuptools-scm
|
||||
, six
|
||||
, glibcLocales
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
|
@ -27,16 +28,15 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
checkInputs = [
|
||||
glibcLocales
|
||||
nose
|
||||
numpy
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# PyPI releases don't ship all the needed files for the tests
|
||||
"test_index_zero_length"
|
||||
"test_fetch_zero_length"
|
||||
"test_read_back_index"
|
||||
disabledTestPaths = [
|
||||
# FileNotFoundError: [Errno 2] No such file or directory: 'data/genes.fasta.gz'
|
||||
"tests/test_Fasta_bgzip.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
pname = "python-vagrant";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
@ -12,6 +13,10 @@ buildPythonPackage rec {
|
|||
# The tests try to connect to qemu
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"vagrant"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python module that provides a thin wrapper around the vagrant command line executable";
|
||||
homepage = "https://github.com/todddeluca/python-vagrant";
|
||||
|
|
|
@ -3,14 +3,17 @@
|
|||
, buildPythonPackage
|
||||
, setuptools-scm
|
||||
, astropy
|
||||
, numpy
|
||||
, scipy
|
||||
, six
|
||||
, pytestCheckHook
|
||||
, pytest-doctestplus
|
||||
, scipy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "radio_beam";
|
||||
version = "0.3.3";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
|
@ -22,9 +25,17 @@ buildPythonPackage rec {
|
|||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ astropy ];
|
||||
propagatedBuildInputs = [
|
||||
astropy
|
||||
numpy
|
||||
scipy
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook pytest-doctestplus scipy ];
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-doctestplus
|
||||
];
|
||||
|
||||
# Tests must be run in the build directory
|
||||
preCheck = ''
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{ lib, git, setuptools, setuptools-scm, fetchFromGitHub, requests, boto3, buildPythonPackage, responses }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sapi-python-client";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keboola";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "189dzj06vzp7366h2qsfvbjmw9qgl7jbp8syhynn9yvrjqp4k8h3";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's|use_scm_version=True|version="${version}"|' setup.py
|
||||
'';
|
||||
|
||||
doCheck = false; # requires API token and an active keboola bucket
|
||||
|
||||
nativeBuildInputs = [ git setuptools-scm ];
|
||||
|
||||
propagatedBuildInputs = [ setuptools requests boto3 responses ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Keboola Connection Storage API client";
|
||||
homepage = "https://github.com/keboola/sapi-python-client";
|
||||
maintainers = with maintainers; [ mrmebelman ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
, pythonOlder
|
||||
, pyyaml
|
||||
, starkbank-ecdsa
|
||||
, six
|
||||
, werkzeug
|
||||
}:
|
||||
|
||||
|
@ -27,6 +28,7 @@ buildPythonPackage rec {
|
|||
propagatedBuildInputs = [
|
||||
python-http-client
|
||||
starkbank-ecdsa
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
|
|
@ -121,6 +121,7 @@ mapAliases ({
|
|||
ruamel_base = ruamel-base; # added 2021-11-01
|
||||
ruamel_yaml = ruamel-yaml; # added 2021-11-01
|
||||
ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01
|
||||
sapi-python-client = kbcstorage; # added 2022-04-20
|
||||
scikitlearn = scikit-learn; # added 2021-07-21
|
||||
selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10
|
||||
setuptools_scm = setuptools-scm; # added 2021-06-03
|
||||
|
|
|
@ -4485,6 +4485,8 @@ in {
|
|||
|
||||
kazoo = callPackage ../development/python-modules/kazoo { };
|
||||
|
||||
kbcstorage = callPackage ../development/python-modules/kbcstorage { };
|
||||
|
||||
kconfiglib = callPackage ../development/python-modules/kconfiglib { };
|
||||
|
||||
keep = callPackage ../development/python-modules/keep { };
|
||||
|
@ -9088,8 +9090,6 @@ in {
|
|||
|
||||
sanic-testing = callPackage ../development/python-modules/sanic-testing { };
|
||||
|
||||
sapi-python-client = callPackage ../development/python-modules/sapi-python-client { };
|
||||
|
||||
sarif-om = callPackage ../development/python-modules/sarif-om { };
|
||||
|
||||
sarge = callPackage ../development/python-modules/sarge { };
|
||||
|
|
Loading…
Reference in a new issue