pkgs/development/python-modules: stdenv.lib -> lib
This commit is contained in:
parent
2f34b4b883
commit
a4bbfba80d
|
@ -16,12 +16,12 @@ let
|
||||||
++ [ "reimport_from_subinterpreter" ]
|
++ [ "reimport_from_subinterpreter" ]
|
||||||
# cython's testsuite is not working very well with libc++
|
# cython's testsuite is not working very well with libc++
|
||||||
# We are however optimistic about things outside of testsuite still working
|
# We are however optimistic about things outside of testsuite still working
|
||||||
++ stdenv.lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
|
++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ]
|
||||||
# Some tests in the test suite isn't working on aarch64. Disable them for
|
# Some tests in the test suite isn't working on aarch64. Disable them for
|
||||||
# now until upstream finds a workaround.
|
# now until upstream finds a workaround.
|
||||||
# Upstream issue here: https://github.com/cython/cython/issues/2308
|
# Upstream issue here: https://github.com/cython/cython/issues/2308
|
||||||
++ stdenv.lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ]
|
++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ]
|
||||||
++ stdenv.lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ]
|
++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ]
|
||||||
;
|
;
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
|
@ -55,7 +55,7 @@ in buildPythonPackage rec {
|
||||||
export HOME="$NIX_BUILD_TOP"
|
export HOME="$NIX_BUILD_TOP"
|
||||||
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
${python.interpreter} runtests.py -j$NIX_BUILD_CORES \
|
||||||
--no-code-style \
|
--no-code-style \
|
||||||
${stdenv.lib.optionalString (builtins.length excludedTests != 0)
|
${lib.optionalString (builtins.length excludedTests != 0)
|
||||||
''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
|
''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,9 @@ buildPythonPackage rec {
|
||||||
nativeBuildInputs = [ cython ];
|
nativeBuildInputs = [ cython ];
|
||||||
propagatedBuildInputs = [ numpy pysam matplotlib ];
|
propagatedBuildInputs = [ numpy pysam matplotlib ];
|
||||||
|
|
||||||
checkPhase = stdenv.lib.optionalString isPy27 ''
|
checkPhase = lib.optionalString isPy27 ''
|
||||||
${python.interpreter} python2/test/test_general.py
|
${python.interpreter} python2/test/test_general.py
|
||||||
'' + stdenv.lib.optionalString isPy3k ''
|
'' + lib.optionalString isPy3k ''
|
||||||
${python.interpreter} python3/test/test_general.py
|
${python.interpreter} python3/test/test_general.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -40,8 +40,8 @@ let
|
||||||
if stdenv.cc.isClang then "clang++" else
|
if stdenv.cc.isClang then "clang++" else
|
||||||
throw "Unknown C++ compiler";
|
throw "Unknown C++ compiler";
|
||||||
cxx_compiler = wrapped cxx_compiler_name "\\$HOME/.theano"
|
cxx_compiler = wrapped cxx_compiler_name "\\$HOME/.theano"
|
||||||
( stdenv.lib.optional cudaSupport libgpuarray_
|
( lib.optional cudaSupport libgpuarray_
|
||||||
++ stdenv.lib.optional cudnnSupport cudnn );
|
++ lib.optional cudnnSupport cudnn );
|
||||||
|
|
||||||
libgpuarray_ = libgpuarray.override { inherit cudaSupport cudatoolkit; };
|
libgpuarray_ = libgpuarray.override { inherit cudaSupport cudatoolkit; };
|
||||||
|
|
||||||
|
@ -60,10 +60,10 @@ in buildPythonPackage rec {
|
||||||
substituteInPlace theano/configdefaults.py \
|
substituteInPlace theano/configdefaults.py \
|
||||||
--replace 'StrParam(param, is_valid=warn_cxx)' 'StrParam('\'''${cxx_compiler}'\''', is_valid=warn_cxx)' \
|
--replace 'StrParam(param, is_valid=warn_cxx)' 'StrParam('\'''${cxx_compiler}'\''', is_valid=warn_cxx)' \
|
||||||
--replace 'rc == 0 and config.cxx != ""' 'config.cxx != ""'
|
--replace 'rc == 0 and config.cxx != ""' 'config.cxx != ""'
|
||||||
'' + stdenv.lib.optionalString cudaSupport ''
|
'' + lib.optionalString cudaSupport ''
|
||||||
substituteInPlace theano/configdefaults.py \
|
substituteInPlace theano/configdefaults.py \
|
||||||
--replace 'StrParam(get_cuda_root)' 'StrParam('\'''${cudatoolkit}'\''')'
|
--replace 'StrParam(get_cuda_root)' 'StrParam('\'''${cudatoolkit}'\''')'
|
||||||
'' + stdenv.lib.optionalString cudnnSupport ''
|
'' + lib.optionalString cudnnSupport ''
|
||||||
substituteInPlace theano/configdefaults.py \
|
substituteInPlace theano/configdefaults.py \
|
||||||
--replace 'StrParam(default_dnn_base_path)' 'StrParam('\'''${cudnn}'\''')'
|
--replace 'StrParam(default_dnn_base_path)' 'StrParam('\'''${cudnn}'\''')'
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchPypi, buildPythonPackage, python, isPy3k, glibcLocales }:
|
{ lib, stdenv, fetchPypi, buildPythonPackage, python, isPy3k, glibcLocales }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aenum";
|
pname = "aenum";
|
||||||
|
@ -22,10 +22,10 @@ buildPythonPackage rec {
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
|
description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants";
|
||||||
maintainers = with stdenv.lib.maintainers; [ vrthra ];
|
maintainers = with maintainers; [ vrthra ];
|
||||||
license = with stdenv.lib.licenses; [ bsd3 ];
|
license = licenses.bsd3;
|
||||||
homepage = "https://github.com/ethanfurman/aenum";
|
homepage = "https://github.com/ethanfurman/aenum";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,9 @@ buildPythonPackage rec {
|
||||||
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d";
|
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with stdenv.lib; [ pycares ]
|
propagatedBuildInputs = [ pycares ]
|
||||||
++ optional (pythonOlder "3.7") typing
|
++ lib.optional (pythonOlder "3.7") typing
|
||||||
++ optional (isPy27 || isPyPy) trollius;
|
++ lib.optional (isPy27 || isPyPy) trollius;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} tests.py
|
${python.interpreter} tests.py
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
async-timeout
|
async-timeout
|
||||||
] ++ stdenv.lib.optional (!isPyPy) hiredis;
|
] ++ lib.optional (!isPyPy) hiredis;
|
||||||
|
|
||||||
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
|
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||||
pandas
|
pandas
|
||||||
six
|
six
|
||||||
toolz
|
toolz
|
||||||
] ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
] ++ lib.optionals (pythonOlder "3.5") [ typing ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
glibcLocales
|
glibcLocales
|
||||||
|
|
|
@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ dateutil ];
|
propagatedBuildInputs = [ dateutil ];
|
||||||
|
|
||||||
checkInputs = stdenv.lib.optional (!isPy3k) mock;
|
checkInputs = lib.optional (!isPy3k) mock;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
|
|
@ -22,13 +22,13 @@ buildPythonPackage rec {
|
||||||
# Failing tests on Python 3
|
# Failing tests on Python 3
|
||||||
# https://github.com/pytest-dev/apipkg/issues/17
|
# https://github.com/pytest-dev/apipkg/issues/17
|
||||||
checkPhase = let
|
checkPhase = let
|
||||||
disabledTests = stdenv.lib.optionals isPy3k [
|
disabledTests = lib.optionals isPy3k [
|
||||||
"test_error_loading_one_element"
|
"test_error_loading_one_element"
|
||||||
"test_aliasmodule_proxy_methods"
|
"test_aliasmodule_proxy_methods"
|
||||||
"test_eagerload_on_bython"
|
"test_eagerload_on_bython"
|
||||||
];
|
];
|
||||||
testExpression = stdenv.lib.optionalString (disabledTests != [])
|
testExpression = lib.optionalString (disabledTests != [])
|
||||||
"-k 'not ${stdenv.lib.concatStringsSep " and not " disabledTests}'";
|
"-k 'not ${lib.concatStringsSep " and not " disabledTests}'";
|
||||||
in ''
|
in ''
|
||||||
py.test ${testExpression}
|
py.test ${testExpression}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
# this test requires network access
|
# this test requires network access
|
||||||
sed -i 's/test_server_with_path/noop/' avro/test/test_ipc.py
|
sed -i 's/test_server_with_path/noop/' avro/test/test_ipc.py
|
||||||
'' + (stdenv.lib.optionalString isPy3k ''
|
'' + (lib.optionalString isPy3k ''
|
||||||
# these files require twisted, which is not python3 compatible
|
# these files require twisted, which is not python3 compatible
|
||||||
rm avro/txipc.py
|
rm avro/txipc.py
|
||||||
rm avro/test/txsample*
|
rm avro/test/txsample*
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
{ stdenv, buildPythonPackage, isPyPy, fetchPypi, pythonOlder
|
{ lib, stdenv, buildPythonPackage, isPyPy, fetchPypi, pythonOlder
|
||||||
, cffi, pycparser, mock, pytest, py, six }:
|
, cffi, pycparser, mock, pytest, py, six }:
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "3.2.0";
|
version = "3.2.0";
|
||||||
pname = "bcrypt";
|
pname = "bcrypt";
|
||||||
|
@ -12,10 +10,12 @@ buildPythonPackage rec {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
|
sha256 = "5b93c1726e50a93a033c36e5ca7fdcd29a5c7395af50a6892f5d9e7c6cfbfb29";
|
||||||
};
|
};
|
||||||
buildInputs = [ pycparser mock pytest py ];
|
|
||||||
propagatedBuildInputs = [ six ] ++ optional (!isPyPy) cffi;
|
|
||||||
|
|
||||||
meta = {
|
buildInputs = [ pycparser mock pytest py ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
maintainers = with maintainers; [ domenkozar ];
|
maintainers = with maintainers; [ domenkozar ];
|
||||||
description = "Modern password hashing for your software and your servers";
|
description = "Modern password hashing for your software and your servers";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||||
, beautifulsoup4, bottle, chardet, dateutil
|
, beautifulsoup4, bottle, chardet, dateutil
|
||||||
, google_api_python_client, lxml, oauth2client
|
, google_api_python_client, lxml, oauth2client
|
||||||
, ply, python_magic, pytest, requests }:
|
, ply, python_magic, pytest, requests }:
|
||||||
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "http://furius.ca/beancount/";
|
homepage = "http://furius.ca/beancount/";
|
||||||
description = "Double-entry bookkeeping computer language";
|
description = "Double-entry bookkeeping computer language";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -41,8 +41,8 @@ buildPythonPackage rec {
|
||||||
financial transaction records in a text file, read them in memory,
|
financial transaction records in a text file, read them in memory,
|
||||||
generate a variety of reports from them, and provides a web interface.
|
generate a variety of reports from them, and provides a web interface.
|
||||||
'';
|
'';
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with stdenv.lib.maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, buildPythonPackage }:
|
{ lib, stdenv, fetchFromGitHub, buildPythonPackage }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "beanstalkc";
|
pname = "beanstalkc";
|
||||||
|
@ -13,10 +13,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A simple beanstalkd client library for Python";
|
description = "A simple beanstalkd client library for Python";
|
||||||
maintainers = with stdenv.lib.maintainers; [ aanderse ];
|
maintainers = with maintainers; [ aanderse ];
|
||||||
license = with stdenv.lib.licenses; [ asl20 ];
|
license = licenses.asl20;
|
||||||
homepage = "https://github.com/earl/beanstalkc";
|
homepage = "https://github.com/earl/beanstalkc";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
buildInputs = [ btrfs-progs ];
|
buildInputs = [ btrfs-progs ];
|
||||||
propagatedBuildInputs = [ contextlib2 pyxdg pycparser alembic ]
|
propagatedBuildInputs = [ contextlib2 pyxdg pycparser alembic ]
|
||||||
++ stdenv.lib.optionals (!isPyPy) [ cffi ];
|
++ lib.optionals (!isPyPy) [ cffi ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Deduplication for Btrfs";
|
description = "Deduplication for Btrfs";
|
||||||
|
|
|
@ -26,7 +26,7 @@ buildPythonApplication rec {
|
||||||
|
|
||||||
# timing-based test flaky on Darwin
|
# timing-based test flaky on Darwin
|
||||||
# https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
|
# https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
|
||||||
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];
|
||||||
|
|
||||||
postCheck = ''
|
postCheck = ''
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
|
|
|
@ -35,7 +35,7 @@ buildPythonPackage {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs sasquatch squashfsTools lzma pycrypto ]
|
propagatedBuildInputs = [ zlib xz ncompress gzip bzip2 gnutar p7zip cabextract cramfsswap cramfsprogs sasquatch squashfsTools lzma pycrypto ]
|
||||||
++ stdenv.lib.optionals visualizationSupport [ matplotlib pyqtgraph ];
|
++ lib.optionals visualizationSupport [ matplotlib pyqtgraph ];
|
||||||
|
|
||||||
# setup.py only installs version.py during install, not test
|
# setup.py only installs version.py during install, not test
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, python, fetchPypi, makeWrapper, unzip, makeSetupHook
|
{ lib, stdenv, python, fetchPypi, makeWrapper, unzip, makeSetupHook
|
||||||
, pipInstallHook
|
, pipInstallHook
|
||||||
, setuptoolsBuildHook
|
, setuptoolsBuildHook
|
||||||
, wheel, pip, setuptools
|
, wheel, pip, setuptools
|
||||||
|
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildPhase = ":";
|
buildPhase = ":";
|
||||||
|
|
||||||
installPhase = stdenv.lib.strings.optionalString (!stdenv.hostPlatform.isWindows) ''
|
installPhase = lib.strings.optionalString (!stdenv.hostPlatform.isWindows) ''
|
||||||
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
|
export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
|
||||||
'' + ''
|
'' + ''
|
||||||
# Give folders a known name
|
# Give folders a known name
|
||||||
|
@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Version of pip used for bootstrapping";
|
description = "Version of pip used for bootstrapping";
|
||||||
license = stdenv.lib.unique (pip.meta.license ++ setuptools.meta.license ++ wheel.meta.license);
|
license = lib.unique (pip.meta.license ++ setuptools.meta.license ++ wheel.meta.license);
|
||||||
homepage = pip.meta.homepage;
|
homepage = pip.meta.homepage;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ fetchPypi, stdenv, buildPythonPackage }:
|
{ lib, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "zc.buildout";
|
pname = "zc.buildout";
|
||||||
|
@ -13,10 +13,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postInstall = "mv $out/bin/buildout{,-nix}";
|
postInstall = "mv $out/bin/buildout{,-nix}";
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "http://www.buildout.org";
|
homepage = "http://www.buildout.org";
|
||||||
description = "A software build and configuration system";
|
description = "A software build and configuration system";
|
||||||
license = stdenv.lib.licenses.zpl21;
|
license = licenses.zpl21;
|
||||||
maintainers = [ stdenv.lib.maintainers.goibhniu ];
|
maintainers = [ maintainers.goibhniu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ let
|
||||||
libGL
|
libGL
|
||||||
libGLU
|
libGLU
|
||||||
libX11
|
libX11
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa ];
|
] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
six
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "capstone";
|
pname = "capstone";
|
||||||
version = stdenv.lib.getVersion capstone;
|
version = lib.getVersion capstone;
|
||||||
|
|
||||||
src = capstone.src;
|
src = capstone.src;
|
||||||
sourceRoot = "${capstone.name}/bindings/python";
|
sourceRoot = "${capstone.name}/bindings/python";
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
version = "1.4";
|
version = "1.4";
|
||||||
disabled = isPy3k;
|
disabled = isPy3k;
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.IOKit ];
|
buildInputs = lib.optionals stdenv.isDarwin [ pkgs.darwin.apple_sdk.frameworks.IOKit ];
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "http://cddb-py.sourceforge.net/${pname}-${version}.tar.gz";
|
url = "http://cddb-py.sourceforge.net/${pname}-${version}.tar.gz";
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, buildPythonPackage, isPy3k }:
|
{ lib, buildPythonPackage, fetchurl, isPy3k }:
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cdecimal";
|
pname = "cdecimal";
|
||||||
|
|
|
@ -17,7 +17,7 @@ if isPyPy then null else buildPythonPackage rec {
|
||||||
# On Darwin, the cffi tests want to hit libm a lot, and look for it in a global
|
# On Darwin, the cffi tests want to hit libm a lot, and look for it in a global
|
||||||
# impure search path. It's obnoxious how much repetition there is, and how difficult
|
# impure search path. It's obnoxious how much repetition there is, and how difficult
|
||||||
# it is to get it to search somewhere else (since we do actually have a libm symlink in libSystem)
|
# it is to get it to search somewhere else (since we do actually have a libm symlink in libSystem)
|
||||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace testing/cffi0/test_parsing.py \
|
substituteInPlace testing/cffi0/test_parsing.py \
|
||||||
--replace 'lib_m = "m"' 'lib_m = "System"' \
|
--replace 'lib_m = "m"' 'lib_m = "System"' \
|
||||||
--replace '"libm" in name' '"libSystem" in name'
|
--replace '"libm" in name' '"libSystem" in name'
|
||||||
|
@ -29,7 +29,7 @@ if isPyPy then null else buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
|
||||||
"-Wno-unused-command-line-argument -Wno-unreachable-code";
|
"-Wno-unused-command-line-argument -Wno-unreachable-code";
|
||||||
|
|
||||||
doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate
|
doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate
|
||||||
|
@ -40,7 +40,7 @@ if isPyPy then null else buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
maintainers = with maintainers; [ domenkozar lnl7 ];
|
maintainers = with maintainers; [ domenkozar lnl7 ];
|
||||||
homepage = "https://cffi.readthedocs.org/";
|
homepage = "https://cffi.readthedocs.org/";
|
||||||
license = with licenses; [ mit ];
|
license = licenses.mit;
|
||||||
description = "Foreign Function Interface for Python calling C code";
|
description = "Foreign Function Interface for Python calling C code";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, stdenv }:
|
{ lib, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "Cheetah3";
|
pname = "Cheetah3";
|
||||||
|
@ -11,10 +11,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
doCheck = false; # Circular dependency
|
doCheck = false; # Circular dependency
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "http://www.cheetahtemplate.org/";
|
homepage = "http://www.cheetahtemplate.org/";
|
||||||
description = "A template engine and code generation tool";
|
description = "A template engine and code generation tool";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with stdenv.lib.maintainers; [ pjjw ];
|
maintainers = with maintainers; [ pjjw ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=cherrypy/test/test_wsgi_unix_socket.py"}
|
pytest ${lib.optionalString stdenv.isDarwin "--ignore=cherrypy/test/test_wsgi_unix_socket.py"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -41,7 +41,7 @@ buildPythonPackage rec {
|
||||||
-k 'not KeyboardInterrupt and not daemonize and not Autoreload' \
|
-k 'not KeyboardInterrupt and not daemonize and not Autoreload' \
|
||||||
--deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes \
|
--deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes \
|
||||||
--deselect=cherrypy/test/test_tools.py::ToolTests::testCombinedTools \
|
--deselect=cherrypy/test/test_tools.py::ToolTests::testCombinedTools \
|
||||||
${stdenv.lib.optionalString stdenv.isDarwin
|
${lib.optionalString stdenv.isDarwin
|
||||||
"--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block"}
|
"--deselect=cherrypy/test/test_bus.py::BusMethodTests::test_block"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
|
|
||||||
# gcc doesn't approve of this code, so disable -Werror
|
# gcc doesn't approve of this code, so disable -Werror
|
||||||
NIX_CFLAGS_COMPILE = "-w" + stdenv.lib.optionalString stdenv.cc.isClang " -Wno-error=c++11-narrowing";
|
NIX_CFLAGS_COMPILE = "-w" + lib.optionalString stdenv.cc.isClang " -Wno-error=c++11-narrowing";
|
||||||
|
|
||||||
checkPhase = "nosetests -v";
|
checkPhase = "nosetests -v";
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
LC_ALL="en_US.UTF-8";
|
LC_ALL="en_US.UTF-8";
|
||||||
|
|
||||||
postPatch = stdenv.lib.optional stdenv.isDarwin ''
|
postPatch = lib.optional stdenv.isDarwin ''
|
||||||
# Fake the impure dependencies pbpaste and pbcopy
|
# Fake the impure dependencies pbpaste and pbcopy
|
||||||
mkdir bin
|
mkdir bin
|
||||||
echo '#!${stdenv.shell}' > bin/pbpaste
|
echo '#!${stdenv.shell}' > bin/pbpaste
|
||||||
|
@ -38,7 +38,7 @@ buildPythonPackage rec {
|
||||||
wcwidth
|
wcwidth
|
||||||
attrs
|
attrs
|
||||||
]
|
]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.5") [contextlib2 typing]
|
++ lib.optionals (pythonOlder "3.5") [contextlib2 typing]
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ buildPythonPackage rec {
|
||||||
# pytest-cov
|
# pytest-cov
|
||||||
# argcomplete will generate errors
|
# argcomplete will generate errors
|
||||||
checkInputs= [ pytest mock which vim glibcLocales pytest-mock ]
|
checkInputs= [ pytest mock which vim glibcLocales pytest-mock ]
|
||||||
++ stdenv.lib.optional (pythonOlder "3.6") [ mock ];
|
++ lib.optional (pythonOlder "3.6") [ mock ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# test_path_completion_user_expansion might be fixed in the next release
|
# test_path_completion_user_expansion might be fixed in the next release
|
||||||
py.test -k 'not test_path_completion_user_expansion'
|
py.test -k 'not test_path_completion_user_expansion'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
|
{ lib, buildPythonPackage, fetchPypi, requests, coverage, unittest2 }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "codecov";
|
pname = "codecov";
|
||||||
|
@ -20,9 +20,9 @@ buildPythonPackage rec {
|
||||||
# No tests in archive
|
# No tests in archive
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Python report uploader for Codecov";
|
description = "Python report uploader for Codecov";
|
||||||
homepage = "https://codecov.io/";
|
homepage = "https://codecov.io/";
|
||||||
license = stdenv.lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ buildPythonPackage, fetchPypi, stdenv
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -13,10 +15,10 @@ buildPythonPackage rec {
|
||||||
# no tests included in distributed archive
|
# no tests included in distributed archive
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/jackparmer/colorlover";
|
homepage = "https://github.com/jackparmer/colorlover";
|
||||||
description = "Color scales in Python for humans";
|
description = "Color scales in Python for humans";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with stdenv.lib.maintainers; [ globin ];
|
maintainers = with maintainers; [ globin ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
|
checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
|
||||||
|
|
||||||
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
|
disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ];
|
||||||
|
|
||||||
pytestFlagsArray = [ "--benchmark-disable" ];
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ colorlog pyvmomi requests verboselogs pyopenssl setuptools ]
|
propagatedBuildInputs = [ colorlog pyvmomi requests verboselogs pyopenssl setuptools ]
|
||||||
++ stdenv.lib.optional (pythonOlder "3.3") psutil;
|
++ lib.optional (pythonOlder "3.3") psutil;
|
||||||
|
|
||||||
checkInputs = [ mock pytestCheckHook pytest-mock qemu ];
|
checkInputs = [ mock pytestCheckHook pytest-mock qemu ];
|
||||||
|
|
||||||
|
|
|
@ -33,18 +33,18 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = stdenv.lib.optionals (!isPyPy) [
|
nativeBuildInputs = lib.optionals (!isPyPy) [
|
||||||
cffi
|
cffi
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
packaging
|
packaging
|
||||||
six
|
six
|
||||||
] ++ stdenv.lib.optionals (!isPyPy) [
|
] ++ lib.optionals (!isPyPy) [
|
||||||
cffi
|
cffi
|
||||||
] ++ stdenv.lib.optionals isPy27 [
|
] ++ lib.optionals isPy27 [
|
||||||
ipaddress enum34
|
ipaddress enum34
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -31,18 +31,18 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = stdenv.lib.optionals (!isPyPy) [
|
nativeBuildInputs = lib.optionals (!isPyPy) [
|
||||||
cffi
|
cffi
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ openssl ]
|
buildInputs = [ openssl ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
packaging
|
packaging
|
||||||
six
|
six
|
||||||
] ++ stdenv.lib.optionals (!isPyPy) [
|
] ++ lib.optionals (!isPyPy) [
|
||||||
cffi
|
cffi
|
||||||
] ++ stdenv.lib.optionals isPy27 [
|
] ++ lib.optionals isPy27 [
|
||||||
ipaddress enum34
|
ipaddress enum34
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
{ lib, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "csscompressor";
|
pname = "csscompressor";
|
||||||
version = "0.9.5";
|
version = "0.9.5";
|
||||||
|
@ -10,10 +11,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
doCheck = false; # No tests
|
doCheck = false; # No tests
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A python port of YUI CSS Compressor";
|
description = "A python port of YUI CSS Compressor";
|
||||||
homepage = "https://pypi.python.org/pypi/csscompressor";
|
homepage = "https://pypi.python.org/pypi/csscompressor";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [];
|
maintainers = [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ blessings wcwidth ]
|
propagatedBuildInputs = [ blessings wcwidth ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
||||||
|
|
||||||
checkInputs = [ mock pyte nose ];
|
checkInputs = [ mock pyte nose ];
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "a4a7a8cdc113d840142d21a796c16c7d329ad35c48f17156446732c83ebc571a";
|
sha256 = "a4a7a8cdc113d840142d21a796c16c7d329ad35c48f17156446732c83ebc571a";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ aenum ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
|
propagatedBuildInputs = [ aenum ] ++ lib.optional (pythonOlder "3.4") enum34;
|
||||||
|
|
||||||
doCheck = !isPy3k;
|
doCheck = !isPy3k;
|
||||||
# tests are not yet ported.
|
# tests are not yet ported.
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
|
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = stdenv.lib.optionalString isPy3k ''
|
checkPhase = lib.optionalString isPy3k ''
|
||||||
${python.interpreter} -m lib2to3 -w test/test_demjson.py
|
${python.interpreter} -m lib2to3 -w test/test_demjson.py
|
||||||
'' + ''
|
'' + ''
|
||||||
${python.interpreter} test/test_demjson.py
|
${python.interpreter} test/test_demjson.py
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-polymorphic";
|
pname = "django-polymorphic";
|
||||||
|
@ -19,9 +19,9 @@ buildPythonPackage rec {
|
||||||
${python.interpreter} runtests.py
|
${python.interpreter} runtests.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/django-polymorphic/django-polymorphic";
|
homepage = "https://github.com/django-polymorphic/django-polymorphic";
|
||||||
description = "Improved Django model inheritance with automatic downcasting";
|
description = "Improved Django model inheritance with automatic downcasting";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
numpy, django_colorful, pillow, psycopg2,
|
numpy, django_colorful, pillow, psycopg2,
|
||||||
pyparsing, django, celery, boto3, importlib-metadata
|
pyparsing, django, celery, boto3, importlib-metadata
|
||||||
}:
|
}:
|
||||||
if stdenv.lib.versionOlder django.version "2.0"
|
if lib.versionOlder django.version "2.0"
|
||||||
then throw "django-raster requires Django >= 2.0. Consider overiding the python package set to use django_2."
|
then throw "django-raster requires Django >= 2.0. Consider overiding the python package set to use django_2."
|
||||||
else
|
else
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "cf5370a4d7765a9dd6d42a7b96b53c74f9446cd38209211304b210fe0404b861";
|
sha256 = "cf5370a4d7765a9dd6d42a7b96b53c74f9446cd38209211304b210fe0404b861";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optional withGdal
|
patches = lib.optional withGdal
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./1.10-gis-libs.template.patch;
|
src = ./1.10-gis-libs.template.patch;
|
||||||
geos = geos;
|
geos = geos;
|
||||||
|
|
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "2d78425ba74c7a1a74b196058b261b9733a8570782f4e2828974777ccca7edf7";
|
sha256 = "2d78425ba74c7a1a74b196058b261b9733a8570782f4e2828974777ccca7edf7";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optional withGdal
|
patches = lib.optional withGdal
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./django_3_set_geos_gdal_lib.patch;
|
src = ./django_3_set_geos_gdal_lib.patch;
|
||||||
geos = geos;
|
geos = geos;
|
||||||
|
|
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
matplotlib
|
matplotlib
|
||||||
numpy
|
numpy
|
||||||
] ++ stdenv.lib.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
importlib-metadata
|
importlib-metadata
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchPypi, buildPythonPackage }:
|
{ lib, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "easydict";
|
pname = "easydict";
|
||||||
|
@ -11,9 +11,9 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
docheck = false; # No tests in archive
|
docheck = false; # No tests in archive
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/makinacorpus/easydict";
|
homepage = "https://github.com/makinacorpus/easydict";
|
||||||
license = with stdenv.lib; licenses.lgpl3;
|
license = licenses.lgpl3;
|
||||||
description = "Access dict values as attributes (works recursively)";
|
description = "Access dict values as attributes (works recursively)";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
|
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
|
||||||
++ stdenv.lib.optional (!isPy3k) ipaddress;
|
++ lib.optional (!isPy3k) ipaddress;
|
||||||
|
|
||||||
# ImportError: No module named test_elasticsearch_dsl
|
# ImportError: No module named test_elasticsearch_dsl
|
||||||
# Tests require a local instance of elasticsearch
|
# Tests require a local instance of elasticsearch
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchPypi, buildPythonPackage }:
|
{ lib, fetchPypi, buildPythonPackage }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "enzyme";
|
pname = "enzyme";
|
||||||
|
@ -12,9 +12,9 @@ buildPythonPackage rec {
|
||||||
sha256 = "1fv2kh2v4lwj0hhrhj9pib1pdjh01yr4xgyljhx11l94gjlpy5pj";
|
sha256 = "1fv2kh2v4lwj0hhrhj9pib1pdjh01yr4xgyljhx11l94gjlpy5pj";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/Diaoul/enzyme";
|
homepage = "https://github.com/Diaoul/enzyme";
|
||||||
license = with stdenv.lib; licenses.asl20;
|
license = licenses.asl20;
|
||||||
description = "Python video metadata parser";
|
description = "Python video metadata parser";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
wheel
|
wheel
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
python
|
python
|
||||||
|
|
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ six monotonic ];
|
propagatedBuildInputs = [ six monotonic ];
|
||||||
|
|
||||||
checkInputs = [ testtools nose ] ++ stdenv.lib.optionals (!isPy3k) [ futures ];
|
checkInputs = [ testtools nose ] ++ lib.optionals (!isPy3k) [ futures ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests
|
nosetests
|
||||||
|
|
|
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0s5r6l39ck2scks54hmwwdf4lcihqqnqzjfx9lz2b67vxkajpwmc";
|
sha256 = "0s5r6l39ck2scks54hmwwdf4lcihqqnqzjfx9lz2b67vxkajpwmc";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six termcolor ] ++ stdenv.lib.optional isPy27 enum34;
|
propagatedBuildInputs = [ six termcolor ] ++ lib.optional isPy27 enum34;
|
||||||
|
|
||||||
checkInputs = [ hypothesis mock python-Levenshtein pytest ];
|
checkInputs = [ hypothesis mock python-Levenshtein pytest ];
|
||||||
|
|
||||||
|
|
|
@ -14,10 +14,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [ pytest mock pytestrunner ];
|
checkInputs = [ pytest mock pytestrunner ];
|
||||||
propagatedBuildInputs = [ pyflakes pycodestyle mccabe ]
|
propagatedBuildInputs = [ pyflakes pycodestyle mccabe ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.2") [ configparser functools32 ]
|
++ lib.optionals (pythonOlder "3.2") [ configparser functools32 ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ]
|
++ lib.optionals (pythonOlder "3.4") [ enum34 ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ]
|
++ lib.optionals (pythonOlder "3.5") [ typing ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||||
|
|
||||||
# fixtures fail to initialize correctly
|
# fixtures fail to initialize correctly
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }:
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }:
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "Flask-Migrate";
|
pname = "Flask-Migrate";
|
||||||
|
@ -11,15 +9,15 @@ buildPythonPackage rec {
|
||||||
sha256 = "a69d508c2e09d289f6e55a417b3b8c7bfe70e640f53d2d9deb0d056a384f37ee";
|
sha256 = "a69d508c2e09d289f6e55a417b3b8c7bfe70e640f53d2d9deb0d056a384f37ee";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ flask_script ] ++ optional isPy3k glibcLocales;
|
checkInputs = [ flask_script ] ++ lib.optional isPy3k glibcLocales;
|
||||||
propagatedBuildInputs = [ flask flask_sqlalchemy alembic ];
|
propagatedBuildInputs = [ flask flask_sqlalchemy alembic ];
|
||||||
|
|
||||||
# tests invoke the flask cli which uses click and therefore has py3k encoding troubles
|
# tests invoke the flask cli which uses click and therefore has py3k encoding troubles
|
||||||
preCheck = optionalString isPy3k ''
|
preCheck = lib.optionalString isPy3k ''
|
||||||
export LANG="en_US.UTF-8"
|
export LANG="en_US.UTF-8"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ flask ];
|
propagatedBuildInputs = [ flask ];
|
||||||
|
|
||||||
checkInputs = [ blinker ] ++ stdenv.lib.optionals (!isPy3k) [ twill ];
|
checkInputs = [ blinker ] ++ lib.optionals (!isPy3k) [ twill ];
|
||||||
|
|
||||||
# twill integration is outdated in Python 2, hence it the tests fails.
|
# twill integration is outdated in Python 2, hence it the tests fails.
|
||||||
# Some of the tests use localhost networking on darwin.
|
# Some of the tests use localhost networking on darwin.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, flatbuffers
|
, flatbuffers
|
||||||
}:
|
}:
|
||||||
|
@ -16,6 +16,6 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
meta = flatbuffers.meta // {
|
meta = flatbuffers.meta // {
|
||||||
description = "Python runtime library for use with the Flatbuffers serialization format";
|
description = "Python runtime library for use with the Flatbuffers serialization format";
|
||||||
maintainers = with stdenv.lib.maintainers; [ wulfsta ];
|
maintainers = with lib.maintainers; [ wulfsta ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||||
buildInputs = [ unittest2 ];
|
buildInputs = [ unittest2 ];
|
||||||
|
|
||||||
# https://github.com/testing-cabal/funcsigs/issues/10
|
# https://github.com/testing-cabal/funcsigs/issues/10
|
||||||
patches = stdenv.lib.optional (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
patches = lib.optional (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
buildInputs = [ libev ];
|
buildInputs = [ libev ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
zope_interface
|
zope_interface
|
||||||
] ++ stdenv.lib.optionals (!isPyPy) [ greenlet ];
|
] ++ lib.optionals (!isPyPy) [ greenlet ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
cd greentest
|
cd greentest
|
||||||
|
|
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
] ++ stdenv.lib.optional isPy27 [ contextlib2 mock importlib-resources ];
|
] ++ lib.optional isPy27 [ contextlib2 mock importlib-resources ];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
scikitimage
|
scikitimage
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -10,8 +10,6 @@
|
||||||
, isPy3k
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "GooCalendar";
|
pname = "GooCalendar";
|
||||||
version = "0.7.1";
|
version = "0.7.1";
|
||||||
|
|
|
@ -21,13 +21,13 @@ buildPythonPackage rec {
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cython pkg-config ]
|
nativeBuildInputs = [ cython pkg-config ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
|
++ lib.optional stdenv.isDarwin darwin.cctools;
|
||||||
|
|
||||||
buildInputs = [ c-ares openssl zlib ];
|
buildInputs = [ c-ares openssl zlib ];
|
||||||
propagatedBuildInputs = [ six protobuf ]
|
propagatedBuildInputs = [ six protobuf ]
|
||||||
++ stdenv.lib.optionals (isPy27) [ enum34 futures ];
|
++ lib.optionals (isPy27) [ enum34 futures ];
|
||||||
|
|
||||||
preBuild = stdenv.lib.optionalString stdenv.isDarwin "unset AR";
|
preBuild = lib.optionalString stdenv.isDarwin "unset AR";
|
||||||
|
|
||||||
GRPC_BUILD_WITH_BORING_SSL_ASM = "";
|
GRPC_BUILD_WITH_BORING_SSL_ASM = "";
|
||||||
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1;
|
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
|
@ -51,11 +52,9 @@ buildPythonPackage rec {
|
||||||
# https://github.com/NixOS/nixpkgs/issues/47390
|
# https://github.com/NixOS/nixpkgs/issues/47390
|
||||||
installCheckPhase = "meson test --print-errorlogs";
|
installCheckPhase = "meson test --print-errorlogs";
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://gstreamer.freedesktop.org";
|
homepage = "https://gstreamer.freedesktop.org";
|
||||||
|
|
||||||
description = "Python bindings for GStreamer";
|
description = "Python bindings for GStreamer";
|
||||||
|
license = licenses.lgpl2Plus;
|
||||||
license = stdenv.lib.licenses.lgpl2Plus;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python
|
, python
|
||||||
, numba
|
, numba
|
||||||
|
@ -28,7 +29,7 @@ buildPythonPackage {
|
||||||
'add_runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]'
|
'add_runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||||
install_name_tool -add_rpath ${libgumath}/lib $out/${python.sitePackages}/gumath/_gumath.*.so
|
install_name_tool -add_rpath ${libgumath}/lib $out/${python.sitePackages}/gumath/_gumath.*.so
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ buildPythonPackage {
|
||||||
sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b";
|
sha256 = "0r9phq5yrmj968vdvy9vivli35wn1j9a6iwshp69wl7q4p0x8q2b";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optionals stdenv.isDarwin [
|
patches = lib.optionals stdenv.isDarwin [
|
||||||
./no-darwin-cflags.patch
|
./no-darwin-cflags.patch
|
||||||
./no-xcode.patch
|
./no-xcode.patch
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
{ stdenv, fetchPypi, isPy27, python, buildPythonPackage, pythonOlder
|
{ lib, fetchPypi, isPy27, python, buildPythonPackage, pythonOlder
|
||||||
, numpy, hdf5, cython, six, pkgconfig, unittest2, fetchpatch
|
, numpy, hdf5, cython, six, pkgconfig, unittest2, fetchpatch
|
||||||
, mpi4py ? null, openssh, pytestCheckHook, cached-property }:
|
, mpi4py ? null, openssh, pytestCheckHook, cached-property }:
|
||||||
|
|
||||||
assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi;
|
assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi;
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
mpi = hdf5.mpi;
|
mpi = hdf5.mpi;
|
||||||
mpiSupport = hdf5.mpiSupport;
|
mpiSupport = hdf5.mpiSupport;
|
||||||
|
@ -31,27 +29,26 @@ in buildPythonPackage rec {
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
# Needed to run the tests reliably. See:
|
# Needed to run the tests reliably. See:
|
||||||
# https://bitbucket.org/mpi4py/mpi4py/issues/87/multiple-test-errors-with-openmpi-30
|
# https://bitbucket.org/mpi4py/mpi4py/issues/87/multiple-test-errors-with-openmpi-30
|
||||||
${optionalString mpiSupport "export OMPI_MCA_rmaps_base_oversubscribe=yes"}
|
${lib.optionalString mpiSupport "export OMPI_MCA_rmaps_base_oversubscribe=yes"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else "";
|
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else "";
|
||||||
|
|
||||||
# tests now require pytest-mpi, which isn't available and difficult to package
|
# tests now require pytest-mpi, which isn't available and difficult to package
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
checkInputs = optional isPy27 unittest2 ++ [ pytestCheckHook openssh ];
|
checkInputs = lib.optional isPy27 unittest2 ++ [ pytestCheckHook openssh ];
|
||||||
nativeBuildInputs = [ pkgconfig cython ];
|
nativeBuildInputs = [ pkgconfig cython ];
|
||||||
buildInputs = [ hdf5 ]
|
buildInputs = [ hdf5 ]
|
||||||
++ optional mpiSupport mpi;
|
++ lib.optional mpiSupport mpi;
|
||||||
propagatedBuildInputs = [ numpy six]
|
propagatedBuildInputs = [ numpy six]
|
||||||
++ optionals mpiSupport [ mpi4py openssh ]
|
++ lib.optionals mpiSupport [ mpi4py openssh ]
|
||||||
++ optionals (pythonOlder "3.8") [ cached-property ];
|
++ lib.optionals (pythonOlder "3.8") [ cached-property ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "h5py" ];
|
pythonImportsCheck = [ "h5py" ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description =
|
description = "Pythonic interface to the HDF5 binary data format";
|
||||||
"Pythonic interface to the HDF5 binary data format";
|
|
||||||
homepage = "http://www.h5py.org/";
|
homepage = "http://www.h5py.org/";
|
||||||
license = stdenv.lib.licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy3k
|
, isPy3k
|
||||||
|
@ -19,6 +19,6 @@ buildPythonPackage rec {
|
||||||
description = "Enables the “changeset evolution” feature of Mercurial core";
|
description = "Enables the “changeset evolution” feature of Mercurial core";
|
||||||
homepage = "https://www.mercurial-scm.org/doc/evolution/";
|
homepage = "https://www.mercurial-scm.org/doc/evolution/";
|
||||||
maintainers = with maintainers; [ xavierzwirtz ];
|
maintainers = with maintainers; [ xavierzwirtz ];
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, dulwich
|
, dulwich
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
description = "Push and pull from a Git server using Mercurial";
|
description = "Push and pull from a Git server using Mercurial";
|
||||||
homepage = "http://hg-git.github.com/";
|
homepage = "http://hg-git.github.com/";
|
||||||
maintainers = with maintainers; [ koral ];
|
maintainers = with maintainers; [ koral ];
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,16 +10,16 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
stdenv.lib.optionals stdenv.isLinux [ libusb1 udev ] ++
|
lib.optionals stdenv.isLinux [ libusb1 udev ] ++
|
||||||
stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]) ++
|
lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]) ++
|
||||||
[ cython ];
|
[ cython ];
|
||||||
|
|
||||||
# Fix the USB backend library lookup
|
# Fix the USB backend library lookup
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isLinux ''
|
postPatch = lib.optionalString stdenv.isLinux ''
|
||||||
libusb=${libusb1.dev}/include/libusb-1.0
|
libusb=${libusb1.dev}/include/libusb-1.0
|
||||||
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
|
test -d $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; }
|
||||||
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
|
sed -i -e "s|/usr/include/libusb-1.0|$libusb|" setup.py
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace setup.py --replace 'macos_sdk_path =' 'macos_sdk_path = "" #'
|
substituteInPlace setup.py --replace 'macos_sdk_path =' 'macos_sdk_path = "" #'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,9 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
buildInputs = stdenv.lib.optionals withMPI [ mpi ];
|
buildInputs = lib.optionals withMPI [ mpi ];
|
||||||
propagatedBuildInputs = [ python.pkgs.numpy ]
|
propagatedBuildInputs = [ python.pkgs.numpy ]
|
||||||
++ stdenv.lib.optionals withMPI [ python.pkgs.mpi4py ];
|
++ lib.optionals withMPI [ python.pkgs.mpi4py ];
|
||||||
|
|
||||||
dontAddPrefix = true;
|
dontAddPrefix = true;
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi }:
|
{ lib, buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "htmlmin";
|
pname = "htmlmin";
|
||||||
version = "0.1.12";
|
version = "0.1.12";
|
||||||
|
@ -10,10 +11,10 @@ buildPythonPackage rec {
|
||||||
# Tests run fine in a normal source checkout, but not when being built by nix.
|
# Tests run fine in a normal source checkout, but not when being built by nix.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A configurable HTML Minifier with safety features";
|
description = "A configurable HTML Minifier with safety features";
|
||||||
homepage = "https://pypi.python.org/pypi/htmlmin";
|
homepage = "https://pypi.python.org/pypi/htmlmin";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [];
|
maintainers = [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, tornado
|
, tornado
|
||||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
# drop this for version > 0.9.7
|
# drop this for version > 0.9.7
|
||||||
# Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
|
# Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
|
||||||
doCheck = stdenv.lib.versionAtLeast version "0.9.8";
|
doCheck = lib.versionAtLeast version "0.9.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -37,7 +37,7 @@ buildPythonPackage rec {
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
# Those flaky tests are failing intermittently on all platforms
|
# Those flaky tests are failing intermittently on all platforms
|
||||||
NOSE_EXCLUDE = stdenv.lib.concatStringsSep "," [
|
NOSE_EXCLUDE = lib.concatStringsSep "," [
|
||||||
"tests.functional.test_httplib2.test_callback_response"
|
"tests.functional.test_httplib2.test_callback_response"
|
||||||
"tests.functional.test_requests.test_streaming_responses"
|
"tests.functional.test_requests.test_streaming_responses"
|
||||||
"tests.functional.test_httplib2.test_callback_response"
|
"tests.functional.test_httplib2.test_callback_response"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, tornado
|
, tornado
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
# drop this for version > 0.9.7
|
# drop this for version > 0.9.7
|
||||||
# Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
|
# Flaky tests: https://github.com/gabrielfalcao/HTTPretty/pull/394
|
||||||
doCheck = stdenv.lib.versionAtLeast version "0.9.8";
|
doCheck = lib.versionAtLeast version "0.9.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
|
@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
# Those flaky tests are failing intermittently on all platforms
|
# Those flaky tests are failing intermittently on all platforms
|
||||||
NOSE_EXCLUDE = stdenv.lib.concatStringsSep "," [
|
NOSE_EXCLUDE = lib.concatStringsSep "," [
|
||||||
"tests.functional.test_httplib2.test_callback_response"
|
"tests.functional.test_httplib2.test_callback_response"
|
||||||
"tests.functional.test_requests.test_streaming_responses"
|
"tests.functional.test_requests.test_streaming_responses"
|
||||||
"tests.functional.test_httplib2.test_callback_response"
|
"tests.functional.test_httplib2.test_callback_response"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ lib, stdenv, buildPythonPackage, fetchPypi
|
||||||
, pytest, pytestcov, watchdog, mock
|
, pytest, pytestcov, watchdog, mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,5 +17,5 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
# FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent
|
# FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent
|
||||||
# segfaults in the testsuite that end up failing the tests in a background thread (in myapp)
|
# segfaults in the testsuite that end up failing the tests in a background thread (in myapp)
|
||||||
checkInputs = [ pytest pytestcov mock ] ++ stdenv.lib.optional (!stdenv.isDarwin) watchdog;
|
checkInputs = [ pytest pytestcov mock ] ++ lib.optional (!stdenv.isDarwin) watchdog;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest psutil ] ++ stdenv.lib.optionals isPy3k [
|
checkInputs = [ pytest psutil ] ++ lib.optionals isPy3k [
|
||||||
imageio-ffmpeg ffmpeg_3
|
imageio-ffmpeg ffmpeg_3
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = [ numpy pillow ];
|
propagatedBuildInputs = [ numpy pillow ];
|
||||||
|
|
|
@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
|
sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = stdenv.lib.optionalString isPy3k ''
|
patchPhase = lib.optionalString isPy3k ''
|
||||||
sed 's/python-memcached/python3-memcached/' \
|
sed 's/python-memcached/python3-memcached/' \
|
||||||
-i ./influxgraph.egg-info/requires.txt \
|
-i ./influxgraph.egg-info/requires.txt \
|
||||||
-i ./setup.py
|
-i ./setup.py
|
||||||
|
|
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906";
|
sha256 = "4bac649857611baaaf76bc82c173aa542f7486446c335fe1a6c05d0d491c8906";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
prePatch = lib.optionalString stdenv.isDarwin ''
|
||||||
substituteInPlace setup.py --replace "'gnureadline'" " "
|
substituteInPlace setup.py --replace "'gnureadline'" " "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pipInstallHook
|
, pipInstallHook
|
||||||
|
@ -49,7 +50,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pcsclite
|
pcsclite
|
||||||
nettle
|
nettle
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ PCSC ];
|
] ++ lib.optionals stdenv.isDarwin [ PCSC ];
|
||||||
|
|
||||||
# Needed b/c need to check AFTER python wheel is installed (using Rust Build, not buildPythonPackage)
|
# Needed b/c need to check AFTER python wheel is installed (using Rust Build, not buildPythonPackage)
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -83,7 +84,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
pythonImportsCheck = [ "johnnycanencrypt" ];
|
pythonImportsCheck = [ "johnnycanencrypt" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/kushaldas/johnnycanencrypt";
|
homepage = "https://github.com/kushaldas/johnnycanencrypt";
|
||||||
description = "Python module for OpenPGP written in Rust";
|
description = "Python module for OpenPGP written in Rust";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
{ lib, buildPythonPackage, fetchFromGitHub
|
||||||
, pbr, click, dataclasses-json, htmlmin, jinja2, markdown2, pygments, pytz, pyyaml, requests, pytestCheckHook, beautifulsoup4, tox
|
, pbr, click, dataclasses-json, htmlmin, jinja2, markdown2, pygments, pytz, pyyaml, requests, pytestCheckHook, beautifulsoup4, tox
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
checkInputs = [ pytestCheckHook beautifulsoup4 ];
|
checkInputs = [ pytestCheckHook beautifulsoup4 ];
|
||||||
pytestFlagsArray = [ "--ignore tests/generate_test.py" ];
|
pytestFlagsArray = [ "--ignore tests/generate_test.py" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Quickly generate HTML documentation from a JSON schema";
|
description = "Quickly generate HTML documentation from a JSON schema";
|
||||||
homepage = "https://github.com/coveooss/json-schema-for-humans";
|
homepage = "https://github.com/coveooss/json-schema-for-humans";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
}:
|
}:
|
||||||
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Resolve JSON Pointers in Python";
|
description = "Resolve JSON Pointers in Python";
|
||||||
homepage = "https://github.com/stefankoegl/python-json-pointer";
|
homepage = "https://github.com/stefankoegl/python-json-pointer";
|
||||||
license = stdenv.lib.licenses.bsd2; # "Modified BSD license, says pypi"
|
license = licenses.bsd2; # "Modified BSD license, says pypi"
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [ pytest pytest-flake8 ];
|
checkInputs = [ pytest pytest-flake8 ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ dbus-python entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
|
propagatedBuildInputs = [ dbus-python entrypoints ] ++ lib.optional stdenv.isLinux secretstorage;
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
nativeBuildInputs = [ setuptools_scm toml ];
|
nativeBuildInputs = [ setuptools_scm toml ];
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
checkInputs = [ pytest keyring ] ++ stdenv.lib.optional (pythonOlder "3.3") backports_unittest-mock;
|
checkInputs = [ pytest keyring ] ++ lib.optional (pythonOlder "3.3") backports_unittest-mock;
|
||||||
|
|
||||||
# heavily relies on importing tests from keyring package
|
# heavily relies on importing tests from keyring package
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -14,7 +14,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75";
|
sha256 = "53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
||||||
|
|
||||||
# Does not include tests
|
# Does not include tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -15,7 +15,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "950a199911a8d94683a6b10321f9345d5a3a8433ec58b217ace979e18f16e248";
|
sha256 = "950a199911a8d94683a6b10321f9345d5a3a8433ec58b217ace979e18f16e248";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cppy
|
cppy
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, buildPythonPackage, isPy3k, pycurl, six, rpm, dateutil }:
|
{ lib, fetchurl, buildPythonPackage, isPy3k, pycurl, six, rpm, dateutil }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "koji";
|
pname = "koji";
|
||||||
|
@ -23,10 +23,10 @@ buildPythonPackage rec {
|
||||||
rm -rf $out/nix
|
rm -rf $out/nix
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "An RPM-based build system";
|
description = "An RPM-based build system";
|
||||||
homepage = "https://pagure.io/koji";
|
homepage = "https://pagure.io/koji";
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, six, pytest }:
|
{ lib, buildPythonPackage, fetchPypi, six, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "latexcodec";
|
pname = "latexcodec";
|
||||||
|
@ -17,10 +17,10 @@ buildPythonPackage rec {
|
||||||
pytest
|
pytest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/mcmtroffaes/latexcodec";
|
homepage = "https://github.com/mcmtroffaes/latexcodec";
|
||||||
description = "Lexer and codec to work with LaTeX code in Python";
|
description = "Lexer and codec to work with LaTeX code in Python";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
|
sha256 = "0fb93h2wxm9as9rsywlgz2ng4wrlbjphn6mgbhj6nls2i86rrdxk";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit ];
|
buildInputs = lib.optionals stdenv.isDarwin [ AppKit ];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
|
cryptography click construct ecdsa hidapi intelhex pillow protobuf requests tabulate
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy27
|
, isPy27
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
patches = [
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
libevdev = stdenv.lib.getLib pkgs.libevdev;
|
libevdev = lib.getLib pkgs.libevdev;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
rm $out/lib/libgpuarray-static.a
|
rm $out/lib/libgpuarray-static.a
|
||||||
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
'' + lib.optionalString (!stdenv.isDarwin) ''
|
||||||
function fixRunPath {
|
function fixRunPath {
|
||||||
p=$(patchelf --print-rpath $1)
|
p=$(patchelf --print-rpath $1)
|
||||||
patchelf --set-rpath "$p:$libraryPath" $1
|
patchelf --set-rpath "$p:$libraryPath" $1
|
||||||
|
|
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
# we never actually explicitly call the install command so this is the only way
|
# we never actually explicitly call the install command so this is the only way
|
||||||
# to inject these options to it - however, openmp-library doesn't appear to have
|
# to inject these options to it - however, openmp-library doesn't appear to have
|
||||||
# any effect, so we have to inject it into NIX_LDFLAGS manually below
|
# any effect, so we have to inject it into NIX_LDFLAGS manually below
|
||||||
postPatch = stdenv.lib.optionalString stdenv.cc.isClang ''
|
postPatch = lib.optionalString stdenv.cc.isClang ''
|
||||||
cat >> setup.cfg <<EOF
|
cat >> setup.cfg <<EOF
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
|
@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
|
'' + lib.optionalString stdenv.cc.isClang ''
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -L${llvmPackages.openmp}/lib -lomp"
|
export NIX_LDFLAGS="$NIX_LDFLAGS -L${llvmPackages.openmp}/lib -lomp"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,9 @@ buildPythonPackage rec {
|
||||||
disabled = (pythonOlder "2.7");
|
disabled = (pythonOlder "2.7");
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests future ]
|
propagatedBuildInputs = [ requests future ]
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
|
++ lib.optionals (pythonOlder "3.4") [ enum34 ];
|
||||||
|
|
||||||
postPatch = (stdenv.lib.optionalString (!pythonOlder "3.4") ''
|
postPatch = (lib.optionalString (!pythonOlder "3.4") ''
|
||||||
sed -i -e '/"enum34",/d' setup.py
|
sed -i -e '/"enum34",/d' setup.py
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||||
buildInputs = [ pkgs.makeWrapper ];
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
|
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
|
||||||
++ stdenv.lib.optionals isPy27 [ singledispatch futures ];
|
++ lib.optionals isPy27 [ singledispatch futures ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
|
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
, contextlib2, osxfuse
|
, contextlib2, osxfuse
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
inherit (stdenv.lib) optionals optionalString;
|
|
||||||
in
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "llfuse";
|
pname = "llfuse";
|
||||||
version = "1.3.8";
|
version = "1.3.8";
|
||||||
|
@ -24,16 +20,18 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
optionals stdenv.isLinux [ fuse ]
|
lib.optionals stdenv.isLinux [ fuse ]
|
||||||
++ optionals stdenv.isDarwin [ osxfuse ];
|
++ lib.optionals stdenv.isDarwin [ osxfuse ];
|
||||||
|
|
||||||
checkInputs = [ pytest which ] ++
|
checkInputs = [ pytest which ] ++
|
||||||
optionals stdenv.isLinux [ attr ];
|
lib.optionals stdenv.isLinux [ attr ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ contextlib2 ];
|
propagatedBuildInputs = [ contextlib2 ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test -k "not test_listdir" ${optionalString stdenv.isDarwin ''-m "not uses_fuse"''}
|
py.test -k "not test_listdir" ${lib.optionalString stdenv.isDarwin ''-m "not uses_fuse"''}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python
|
, python
|
||||||
|
@ -21,7 +22,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ llvm ];
|
nativeBuildInputs = [ llvm ];
|
||||||
propagatedBuildInputs = [ ] ++ stdenv.lib.optional (pythonOlder "3.4") enum34;
|
propagatedBuildInputs = [ ] ++ lib.optional (pythonOlder "3.4") enum34;
|
||||||
|
|
||||||
# Disable static linking
|
# Disable static linking
|
||||||
# https://github.com/numba/llvmlite/issues/93
|
# https://github.com/numba/llvmlite/issues/93
|
||||||
|
@ -38,14 +39,14 @@ buildPythonPackage rec {
|
||||||
${python.executable} runtests.py
|
${python.executable} runtests.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
__impureHostDeps = stdenv.lib.optionals stdenv.isDarwin [ "/usr/lib/libm.dylib" ];
|
__impureHostDeps = lib.optionals stdenv.isDarwin [ "/usr/lib/libm.dylib" ];
|
||||||
|
|
||||||
passthru.llvm = llvm;
|
passthru.llvm = llvm;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "A lightweight LLVM python binding for writing JIT compilers";
|
description = "A lightweight LLVM python binding for writing JIT compilers";
|
||||||
homepage = "http://llvmlite.pydata.org/";
|
homepage = "http://llvmlite.pydata.org/";
|
||||||
license = stdenv.lib.licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with stdenv.lib.maintainers; [ fridh ];
|
maintainers = with maintainers; [ fridh ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,10 +12,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook colorama ];
|
checkInputs = [ pytestCheckHook colorama ];
|
||||||
|
|
||||||
pytestFlagsArray = stdenv.lib.optionals stdenv.isDarwin [ "--ignore=tests/test_multiprocessing.py" ];
|
pytestFlagsArray = lib.optionals stdenv.isDarwin [ "--ignore=tests/test_multiprocessing.py" ];
|
||||||
|
|
||||||
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
disabledTests = [ "test_time_rotation_reopening" "test_file_buffering" ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ];
|
++ lib.optionals stdenv.isDarwin [ "test_rotation_and_retention" "test_rotation_and_retention_timed_file" "test_renaming" "test_await_complete_inheritance" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/Delgan/loguru";
|
homepage = "https://github.com/Delgan/loguru";
|
||||||
|
|
|
@ -38,17 +38,17 @@ buildPythonPackage rec {
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
survey
|
survey
|
||||||
watchdog
|
watchdog
|
||||||
] ++ stdenv.lib.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
importlib-metadata
|
importlib-metadata
|
||||||
] ++ stdenv.lib.optionals (pythonOlder "3.9") [
|
] ++ lib.optionals (pythonOlder "3.9") [
|
||||||
importlib-resources
|
importlib-resources
|
||||||
] ++ stdenv.lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
dbus-next
|
dbus-next
|
||||||
];
|
];
|
||||||
|
|
||||||
makeWrapperArgs = [
|
makeWrapperArgs = [
|
||||||
# Add the installed directories to the python path so the daemon can find them
|
# Add the installed directories to the python path so the daemon can find them
|
||||||
"--prefix" "PYTHONPATH" ":" "${stdenv.lib.concatStringsSep ":" (map (p: p + "/lib/${python.libPrefix}/site-packages") (python.pkgs.requiredPythonModules propagatedBuildInputs))}"
|
"--prefix" "PYTHONPATH" ":" "${lib.concatStringsSep ":" (map (p: p + "/lib/${python.libPrefix}/site-packages") (python.pkgs.requiredPythonModules propagatedBuildInputs))}"
|
||||||
"--prefix" "PYTHONPATH" ":" "$out/lib/${python.libPrefix}/site-packages"
|
"--prefix" "PYTHONPATH" ":" "$out/lib/${python.libPrefix}/site-packages"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [ spake2 pynacl six attrs twisted autobahn automat hkdf tqdm click humanize txtorcon ];
|
propagatedBuildInputs = [ spake2 pynacl six attrs twisted autobahn automat hkdf tqdm click humanize txtorcon ];
|
||||||
checkInputs = [ mock magic-wormhole-transit-relay magic-wormhole-mailbox-server ];
|
checkInputs = [ mock magic-wormhole-transit-relay magic-wormhole-mailbox-server ];
|
||||||
|
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isLinux ''
|
postPatch = lib.optionalString stdenv.isLinux ''
|
||||||
sed -i -e "s|'ifconfig'|'${nettools}/bin/ifconfig'|" src/wormhole/ipaddrs.py
|
sed -i -e "s|'ifconfig'|'${nettools}/bin/ifconfig'|" src/wormhole/ipaddrs.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ python3Packages.buildPythonApplication rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ dateutil future requests beautifulsoup4 ]
|
propagatedBuildInputs = with python3Packages; [ dateutil future requests beautifulsoup4 ]
|
||||||
++ stdenv.lib.optional withTwitter python3Packages.twitter
|
++ lib.optional withTwitter python3Packages.twitter
|
||||||
;
|
;
|
||||||
|
|
||||||
# No tests in Pypi Tarball
|
# No tests in Pypi Tarball
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, buildPythonPackage, fetchPypi, markdown,
|
{ lib, buildPythonPackage, fetchPypi, markdown,
|
||||||
pytest, pytestrunner, pytestcov, coverage }:
|
pytest, pytestrunner, pytestcov, coverage }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -22,10 +22,10 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [ pytest pytestrunner pytestcov coverage ];
|
checkInputs = [ pytest pytestrunner pytestcov coverage ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "An extension to the Python Markdown package enabling superscript text";
|
description = "An extension to the Python Markdown package enabling superscript text";
|
||||||
homepage = "https://github.com/jambonrose/markdown_superscript_extension";
|
homepage = "https://github.com/jambonrose/markdown_superscript_extension";
|
||||||
license = stdenv.lib.licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
broken = true; # unmaintained in nixpkgs, barely maintained in pypi, added 2020-11-29
|
broken = true; # unmaintained in nixpkgs, barely maintained in pypi, added 2020-11-29
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,17 +42,17 @@ buildPythonPackage rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ which sphinx ]
|
buildInputs = [ which sphinx ]
|
||||||
++ stdenv.lib.optional enableGhostscript ghostscript
|
++ lib.optional enableGhostscript ghostscript
|
||||||
++ stdenv.lib.optional stdenv.isDarwin [ Cocoa ];
|
++ lib.optional stdenv.isDarwin [ Cocoa ];
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ cycler dateutil nose numpy pyparsing tornado freetype kiwisolver
|
[ cycler dateutil nose numpy pyparsing tornado freetype kiwisolver
|
||||||
libpng mock pytz ]
|
libpng mock pytz ]
|
||||||
++ stdenv.lib.optional (pythonOlder "3.3") backports_functools_lru_cache
|
++ lib.optional (pythonOlder "3.3") backports_functools_lru_cache
|
||||||
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
|
++ lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
|
||||||
++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ]
|
++ lib.optionals enableTk [ tcl tk tkinter libX11 ]
|
||||||
++ stdenv.lib.optionals enableQt [ pyqt4 ]
|
++ lib.optionals enableQt [ pyqt4 ]
|
||||||
++ stdenv.lib.optionals python.isPy2 [ functools32 subprocess32 ];
|
++ lib.optionals python.isPy2 [ functools32 subprocess32 ];
|
||||||
|
|
||||||
setup_cfg = ./setup.cfg;
|
setup_cfg = ./setup.cfg;
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -67,10 +67,9 @@ buildPythonPackage rec {
|
||||||
# script.
|
# script.
|
||||||
postPatch =
|
postPatch =
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib.strings) substring;
|
tcl_tk_cache = ''"${tk}/lib", "${tcl}/lib", "${lib.strings.substring 0 3 tk.version}"'';
|
||||||
tcl_tk_cache = ''"${tk}/lib", "${tcl}/lib", "${substring 0 3 tk.version}"'';
|
|
||||||
in
|
in
|
||||||
stdenv.lib.optionalString enableTk
|
lib.optionalString enableTk
|
||||||
"sed -i '/self.tcl_tk_cache = None/s|None|${tcl_tk_cache}|' setupext.py";
|
"sed -i '/self.tcl_tk_cache = None/s|None|${tcl_tk_cache}|' setupext.py";
|
||||||
|
|
||||||
# Matplotlib needs to be built against a specific version of freetype in
|
# Matplotlib needs to be built against a specific version of freetype in
|
||||||
|
|
|
@ -35,15 +35,15 @@ buildPythonPackage rec {
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildInputs = [ which sphinx ]
|
buildInputs = [ which sphinx ]
|
||||||
++ stdenv.lib.optional enableGhostscript ghostscript
|
++ lib.optional enableGhostscript ghostscript
|
||||||
++ stdenv.lib.optional stdenv.isDarwin [ Cocoa ];
|
++ lib.optional stdenv.isDarwin [ Cocoa ];
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ cycler dateutil numpy pyparsing tornado freetype kiwisolver
|
[ cycler dateutil numpy pyparsing tornado freetype kiwisolver
|
||||||
certifi libpng mock pytz pillow ]
|
certifi libpng mock pytz pillow ]
|
||||||
++ stdenv.lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
|
++ lib.optionals enableGtk3 [ cairo pycairo gtk3 gobject-introspection pygobject3 ]
|
||||||
++ stdenv.lib.optionals enableTk [ tcl tk tkinter libX11 ]
|
++ lib.optionals enableTk [ tcl tk tkinter libX11 ]
|
||||||
++ stdenv.lib.optionals enableQt [ pyqt5 ];
|
++ lib.optionals enableQt [ pyqt5 ];
|
||||||
|
|
||||||
setup_cfg = if stdenv.isDarwin then ./setup-darwin.cfg else ./setup.cfg;
|
setup_cfg = if stdenv.isDarwin then ./setup-darwin.cfg else ./setup.cfg;
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -58,10 +58,9 @@ buildPythonPackage rec {
|
||||||
# script.
|
# script.
|
||||||
postPatch =
|
postPatch =
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib.strings) substring;
|
tcl_tk_cache = ''"${tk}/lib", "${tcl}/lib", "${lib.strings.substring 0 3 tk.version}"'';
|
||||||
tcl_tk_cache = ''"${tk}/lib", "${tcl}/lib", "${substring 0 3 tk.version}"'';
|
|
||||||
in
|
in
|
||||||
stdenv.lib.optionalString enableTk
|
lib.optionalString enableTk
|
||||||
"sed -i '/self.tcl_tk_cache = None/s|None|${tcl_tk_cache}|' setupext.py";
|
"sed -i '/self.tcl_tk_cache = None/s|None|${tcl_tk_cache}|' setupext.py";
|
||||||
|
|
||||||
# Matplotlib needs to be built against a specific version of freetype in
|
# Matplotlib needs to be built against a specific version of freetype in
|
||||||
|
|
|
@ -28,8 +28,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "42c7909953cc5aea91921b47d804b61e14893bf48a2a476ce49a96559a0fa1d3";
|
sha256 = "42c7909953cc5aea91921b47d804b61e14893bf48a2a476ce49a96559a0fa1d3";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = isPyPy || stdenv.lib.versionOlder django.version "1.11"
|
disabled = isPyPy || lib.versionOlder django.version "1.11"
|
||||||
|| stdenv.lib.versionAtLeast django.version "2.0";
|
|| lib.versionAtLeast django.version "2.0";
|
||||||
|
|
||||||
buildInputs = [ pyflakes pep8 ];
|
buildInputs = [ pyflakes pep8 ];
|
||||||
propagatedBuildInputs = [ django django_contrib_comments filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4 requests requests_oauthlib future pillow chardet ];
|
propagatedBuildInputs = [ django django_contrib_comments filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4 requests requests_oauthlib future pillow chardet ];
|
||||||
|
|
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "d6b3aca6cdb92bbd47e19ebdb1a0b84ef23ab874eae5c6d505323c8657257c06";
|
sha256 = "d6b3aca6cdb92bbd47e19ebdb1a0b84ef23ab874eae5c6d505323c8657257c06";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = stdenv.lib.optionals (!isPy3k) [ funcsigs ];
|
propagatedBuildInputs = lib.optionals (!isPy3k) [ funcsigs ];
|
||||||
checkInputs = [ pytest numpy ];
|
checkInputs = [ pytest numpy ];
|
||||||
|
|
||||||
# tests are no longer packaged in pypi tarball
|
# tests are no longer packaged in pypi tarball
|
||||||
|
|
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library for building interactive maps";
|
description = "A library for building interactive maps";
|
||||||
homepage = "http://modestmaps.com";
|
homepage = "http://modestmaps.com";
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue