Merge pull request #309680 from TomaSajt/python-refactors
treewide: make some unmaintained python packages use the pypa builder
This commit is contained in:
commit
1976504e44
|
@ -2,13 +2,14 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, pygments
|
, pygments
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "accessible-pygments";
|
pname = "accessible-pygments";
|
||||||
version = "0.0.4";
|
version = "0.0.4";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -17,7 +18,11 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4=";
|
hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
pygments
|
pygments
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, mpmath
|
, mpmath
|
||||||
, numpy
|
, numpy
|
||||||
, pybind11
|
, pybind11
|
||||||
|
@ -18,17 +19,19 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "accupy";
|
pname = "accupy";
|
||||||
version = "0.3.6";
|
version = "0.3.6";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nschloe";
|
owner = "nschloe";
|
||||||
repo = pname;
|
repo = "accupy";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0sxkwpp2xy2jgakhdxr4nh1cspqv8l89kz6s832h05pbpyc0n767";
|
hash = "sha256-xxwLmL/rFgDFQNr8mRBFG1/NArQk9wanelL4Lu7ls2s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
pybind11
|
pybind11
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -36,7 +39,7 @@ buildPythonPackage rec {
|
||||||
eigen
|
eigen
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
mpmath
|
mpmath
|
||||||
numpy
|
numpy
|
||||||
pyfma
|
pyfma
|
||||||
|
@ -51,7 +54,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "/usr/include/eigen3/" "${eigen}/include/eigen3/"
|
--replace-fail "/usr/include/eigen3/" "${eigen}/include/eigen3/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
@ -66,10 +69,12 @@ buildPythonPackage rec {
|
||||||
# decouple ourselves from an unnecessary build dep
|
# decouple ourselves from an unnecessary build dep
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
for f in test/test*.py ; do
|
for f in test/test*.py ; do
|
||||||
substituteInPlace $f --replace 'import perfplot' ""
|
substituteInPlace $f --replace-quiet 'import perfplot' ""
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [ "test_speed_comparison1" "test_speed_comparison2" ];
|
disabledTests = [ "test_speed_comparison1" "test_speed_comparison2" ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "accupy" ];
|
pythonImportsCheck = [ "accupy" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -6,12 +6,13 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, python-dateutil
|
, python-dateutil
|
||||||
, requests
|
, requests
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "adal";
|
pname = "adal";
|
||||||
version = "1.2.7";
|
version = "1.2.7";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AzureAD";
|
owner = "AzureAD";
|
||||||
|
@ -24,7 +25,11 @@ buildPythonPackage rec {
|
||||||
sed -i '/cryptography/d' setup.py
|
sed -i '/cryptography/d' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
pyjwt
|
pyjwt
|
||||||
python-dateutil
|
python-dateutil
|
||||||
requests
|
requests
|
||||||
|
|
|
@ -3,23 +3,28 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pamqp
|
, pamqp
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aioamqp";
|
pname = "aioamqp";
|
||||||
version = "0.15.0";
|
version = "0.15.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Polyconseil";
|
owner = "Polyconseil";
|
||||||
repo = pname;
|
repo = "aioamqp";
|
||||||
rev = "${pname}-${version}";
|
rev = "aioamqp-${version}";
|
||||||
hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk=";
|
hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
pamqp
|
pamqp
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, isPy27
|
, isPy27
|
||||||
|
@ -9,21 +10,24 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiocontextvars";
|
pname = "aiocontextvars";
|
||||||
version = "0.2.2";
|
version = "0.2.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "fantix";
|
owner = "fantix";
|
||||||
repo = pname;
|
repo = "aiocontextvars";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0a2gmrm9csiknc8n3si67sgzffkydplh9d7ga1k87ygk2aj22mmk";
|
hash = "sha256-s1YhpBLz+YNmUO+0BOltfjr3nz4m6mERszNqlmquTyg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "'pytest-runner'," ""
|
--replace-fail "'pytest-runner'," ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
|
|
@ -6,12 +6,13 @@
|
||||||
, pytest-aiohttp
|
, pytest-aiohttp
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiohttp-jinja2";
|
pname = "aiohttp-jinja2";
|
||||||
version = "1.6";
|
version = "1.6";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -20,7 +21,11 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
|
hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
aiohttp
|
aiohttp
|
||||||
jinja2
|
jinja2
|
||||||
];
|
];
|
||||||
|
@ -31,8 +36,8 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace pytest.ini \
|
||||||
--replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" ""
|
--replace-fail "--cov=aiohttp_jinja2/ --cov=tests/ --cov-report term" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
|
@ -44,10 +49,6 @@ buildPythonPackage rec {
|
||||||
"aiohttp_jinja2"
|
"aiohttp_jinja2"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Tests are outdated (1.5)
|
|
||||||
# pytest.PytestUnhandledCoroutineWarning: async def functions...
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Jinja2 support for aiohttp";
|
description = "Jinja2 support for aiohttp";
|
||||||
homepage = "https://github.com/aio-libs/aiohttp_jinja2";
|
homepage = "https://github.com/aio-libs/aiohttp_jinja2";
|
||||||
|
|
|
@ -4,12 +4,13 @@
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, prometheus-client
|
, prometheus-client
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiohttp-openmetrics";
|
pname = "aiohttp-openmetrics";
|
||||||
version = "0.0.12";
|
version = "0.0.12";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -18,7 +19,11 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA=";
|
hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
aiohttp
|
aiohttp
|
||||||
prometheus-client
|
prometheus-client
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
, packaging
|
, packaging
|
||||||
, python-snappy
|
, python-snappy
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, zlib
|
, zlib
|
||||||
, zstandard
|
, zstandard
|
||||||
}:
|
}:
|
||||||
|
@ -16,32 +17,33 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiokafka";
|
pname = "aiokafka";
|
||||||
version = "0.10.0";
|
version = "0.10.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aio-libs";
|
owner = "aio-libs";
|
||||||
repo = pname;
|
repo = "aiokafka";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-G9Q77nWUUW+hG/wm9z/S8gea4U1wHZdj7WdK2LsKBos=";
|
hash = "sha256-G9Q77nWUUW+hG/wm9z/S8gea4U1wHZdj7WdK2LsKBos=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
cython
|
cython
|
||||||
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zlib
|
zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
async-timeout
|
async-timeout
|
||||||
kafka-python
|
kafka-python
|
||||||
packaging
|
packaging
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
optional-dependencies = {
|
||||||
snappy = [
|
snappy = [
|
||||||
python-snappy
|
python-snappy
|
||||||
];
|
];
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiomqtt";
|
pname = "aiomqtt";
|
||||||
version = "2.0.1";
|
version = "2.0.1";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
@ -24,12 +24,12 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-bV1elEO1518LVLwNDN5pzjxRgcG34K1XUsK7fTw8h+8=";
|
hash = "sha256-bV1elEO1518LVLwNDN5pzjxRgcG34K1XUsK7fTw8h+8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
poetry-core
|
poetry-core
|
||||||
poetry-dynamic-versioning
|
poetry-dynamic-versioning
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, pymysql
|
, pymysql
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, wheel
|
, wheel
|
||||||
}:
|
}:
|
||||||
|
@ -11,13 +12,13 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiomysql";
|
pname = "aiomysql";
|
||||||
version = "0.2.0";
|
version = "0.2.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aio-libs";
|
owner = "aio-libs";
|
||||||
repo = pname;
|
repo = "aiomysql";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-m/EgoBU3e+s3soXyYtACMDSjJfMLBOk/00qPtgawwQ8=";
|
hash = "sha256-m/EgoBU3e+s3soXyYtACMDSjJfMLBOk/00qPtgawwQ8=";
|
||||||
};
|
};
|
||||||
|
@ -33,6 +34,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
wheel
|
wheel
|
||||||
];
|
];
|
||||||
|
|
|
@ -12,13 +12,13 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiorun";
|
pname = "aiorun";
|
||||||
version = "2023.7.2";
|
version = "2023.7.2";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cjrh";
|
owner = "cjrh";
|
||||||
repo = pname;
|
repo = "aiorun";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs=";
|
hash = "sha256-3AGsT8IUNi5SZHBsBfd7akj8eQ+xb0mrR7ydIr3T8gs=";
|
||||||
};
|
};
|
||||||
|
@ -31,11 +31,11 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
flit-core
|
flit-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
pygments
|
pygments
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "alembic";
|
pname = "alembic";
|
||||||
version = "1.13.1";
|
version = "1.13.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
@ -31,11 +31,11 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU=";
|
hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
mako
|
mako
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
typing-extensions
|
typing-extensions
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
, setuptools
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, subprocess-tee
|
, subprocess-tee
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ansible-compat";
|
pname = "ansible-compat";
|
||||||
version = "4.1.11";
|
version = "4.1.11";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -24,10 +25,11 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
pyyaml
|
pyyaml
|
||||||
subprocess-tee
|
subprocess-tee
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, writeText
|
, writeText
|
||||||
|
, setuptools
|
||||||
, ipywidgets
|
, ipywidgets
|
||||||
, six
|
, six
|
||||||
, docopt
|
, docopt
|
||||||
|
@ -25,14 +26,16 @@ in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ansible-kernel";
|
pname = "ansible-kernel";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-UJjm9FpmXSznXtaIR2rVv5YJS/H83FvRkNz09vwoe0c=";
|
hash = "sha256-UJjm9FpmXSznXtaIR2rVv5YJS/H83FvRkNz09vwoe0c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ ipywidgets six docopt tqdm jupyter psutil pyyaml ansible-runner ansible ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [ ipywidgets six docopt tqdm jupyter psutil pyyaml ansible-runner ansible ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# remove when merged
|
# remove when merged
|
||||||
|
|
|
@ -18,13 +18,14 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, python-daemon
|
, python-daemon
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
, setuptools
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ansible-runner";
|
pname = "ansible-runner";
|
||||||
version = "2.3.6";
|
version = "2.3.6";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
@ -42,11 +43,12 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
pbr
|
pbr
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
ansible-core
|
ansible-core
|
||||||
psutil
|
psutil
|
||||||
pexpect
|
pexpect
|
||||||
|
|
|
@ -5,38 +5,39 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonAtLeast
|
, pythonAtLeast
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, textwrap3
|
, textwrap3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ansiwrap";
|
pname = "ansiwrap";
|
||||||
version = "0.8.4";
|
version = "0.8.4";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
|
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
extension = "zip";
|
extension = "zip";
|
||||||
sha256 = "ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7";
|
hash = "sha256-ygx0BzTN5Zv5Gfj/LDhvdPmjaYGM3GDv6UiT0B6o2bc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# https://github.com/jonathaneunice/ansiwrap/issues/18
|
# https://github.com/jonathaneunice/ansiwrap/issues/18
|
||||||
substituteInPlace test/test_ansiwrap.py \
|
substituteInPlace test/test_ansiwrap.py \
|
||||||
--replace "set(range(20, 120)).difference(LINE_LENGTHS)" "sorted(set(range(20, 120)).difference(LINE_LENGTHS))" \
|
--replace-fail "set(range(20, 120)).difference(LINE_LENGTHS)" "sorted(set(range(20, 120)).difference(LINE_LENGTHS))" \
|
||||||
--replace "set(range(120, 400)).difference(LINE_LENGTHS)" "sorted(set(range(120, 400)).difference(LINE_LENGTHS))"
|
--replace-fail "set(range(120, 400)).difference(LINE_LENGTHS)" "sorted(set(range(120, 400)).difference(LINE_LENGTHS))"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [ textwrap3 ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
ansicolors
|
ansicolors
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
textwrap3
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"ansiwrap"
|
"ansiwrap"
|
||||||
];
|
];
|
||||||
|
|
|
@ -9,16 +9,16 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "apipkg";
|
pname = "apipkg";
|
||||||
version = "3.0.2";
|
version = "3.0.2";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pytest-dev";
|
owner = "pytest-dev";
|
||||||
repo = pname;
|
repo = "apipkg";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs=";
|
hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
hatch-vcs
|
hatch-vcs
|
||||||
hatchling
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
|
@ -15,12 +15,13 @@
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, requests
|
, requests
|
||||||
, requests-oauthlib
|
, requests-oauthlib
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "apprise";
|
pname = "apprise";
|
||||||
version = "1.7.6";
|
version = "1.7.6";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -33,6 +34,11 @@ buildPythonPackage rec {
|
||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
];
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
babel
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
cryptography
|
cryptography
|
||||||
|
@ -43,7 +49,6 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
babel
|
|
||||||
gntp
|
gntp
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
pytest-mock
|
pytest-mock
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "apscheduler";
|
pname = "apscheduler";
|
||||||
version = "3.10.4";
|
version = "3.10.4";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -29,11 +29,12 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-5t8HGyfZvomOSGvHlAp75QtK8unafAjwdEqW1L1M70o=";
|
hash = "sha256-5t8HGyfZvomOSGvHlAp75QtK8unafAjwdEqW1L1M70o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
pytz
|
pytz
|
||||||
setuptools
|
setuptools
|
||||||
six
|
six
|
||||||
|
@ -51,7 +52,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.cfg \
|
substituteInPlace setup.cfg \
|
||||||
--replace " --cov --tb=short" ""
|
--replace-fail " --cov --tb=short" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
|
|
@ -1,18 +1,19 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, requests
|
, setuptools
|
||||||
, requests-oauthlib
|
, certifi
|
||||||
, responses
|
|
||||||
, six
|
, six
|
||||||
|
, python-dateutil
|
||||||
|
, urllib3
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asana";
|
pname = "asana";
|
||||||
version = "5.0.3";
|
version = "5.0.3";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -23,15 +24,17 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-9F63DvwMh9NwlTqFuhiXfgRRRxAFjjRYmYzsuOhlQJ0=";
|
hash = "sha256-9F63DvwMh9NwlTqFuhiXfgRRRxAFjjRYmYzsuOhlQJ0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ setuptools ];
|
||||||
requests
|
|
||||||
requests-oauthlib
|
dependencies = [
|
||||||
|
certifi
|
||||||
six
|
six
|
||||||
|
python-dateutil
|
||||||
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
responses
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
|
|
@ -1,28 +1,29 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytest
|
, setuptools
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asciitree";
|
pname = "asciitree";
|
||||||
version = "0.3.3";
|
version = "0.3.3";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mbr";
|
owner = "mbr";
|
||||||
repo = pname;
|
repo = "asciitree";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "071wlpyi8pa262sj9xdy0zbj163z84dasxad363z3sfndqxw78h1";
|
hash = "sha256-AaLDO27W6fGHGU11rRpBf5gg1we+9SS1MEJdFP2lPBw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
build-system = [
|
||||||
pytest
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
nativeCheckInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Draws ASCII trees";
|
description = "Draws ASCII trees";
|
||||||
|
|
|
@ -2,18 +2,24 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy27
|
, isPy27
|
||||||
|
, pythonAtLeast
|
||||||
|
, setuptools
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, flask
|
, flask
|
||||||
, pillow
|
, pillow
|
||||||
, psycopg2
|
, psycopg2
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-mock
|
||||||
|
, pytest-xdist
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ase";
|
pname = "ase";
|
||||||
version = "3.22.1";
|
version = "3.22.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
|
@ -21,15 +27,29 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-AE32sOoEsRFMeQ+t/kXUEl6w5TElxmqTQlr4U9gqtDI=";
|
hash = "sha256-AE32sOoEsRFMeQ+t/kXUEl6w5TElxmqTQlr4U9gqtDI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy scipy matplotlib flask pillow psycopg2 ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
checkPhase = ''
|
dependencies = [ numpy scipy matplotlib flask pillow psycopg2 ];
|
||||||
$out/bin/ase test
|
|
||||||
|
nativeCheckInputs = [ pytestCheckHook pytest-mock pytest-xdist ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
"test_fundamental_params"
|
||||||
|
"test_ase_bandstructure"
|
||||||
|
"test_imports"
|
||||||
|
"test_units"
|
||||||
|
"test_favicon"
|
||||||
|
"test_vibrations_methods" # missing attribute
|
||||||
|
"test_jmol_roundtrip" # missing attribute
|
||||||
|
]
|
||||||
|
++ lib.optionals (pythonAtLeast "3.12") [
|
||||||
|
"test_info_calculators"
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export PATH="$out/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# tests just hang most likely due to something with subprocesses and cli
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "ase" ];
|
pythonImportsCheck = [ "ase" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -6,12 +6,13 @@
|
||||||
, isPy27
|
, isPy27
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonAtLeast
|
, pythonAtLeast
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aspell-python";
|
pname = "aspell-python";
|
||||||
version = "1.15";
|
version = "1.15";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
|
@ -22,6 +23,10 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40=";
|
hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
aspell
|
aspell
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
|
||||||
, bcrypt
|
, bcrypt
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, cryptography
|
, cryptography
|
||||||
|
@ -15,13 +14,14 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, python-pkcs11
|
, python-pkcs11
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, setuptools
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asyncssh";
|
pname = "asyncssh";
|
||||||
version = "2.14.2";
|
version = "2.14.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
@ -30,14 +30,19 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-6Va/iYjQega6MwX2YE4mH0ygFMSiMvCHPxx2kvvjz8I=";
|
hash = "sha256-6Va/iYjQega6MwX2YE4mH0ygFMSiMvCHPxx2kvvjz8I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
cryptography
|
cryptography
|
||||||
libsodium
|
|
||||||
nettle
|
nettle
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
buildInputs = [
|
||||||
|
libsodium
|
||||||
|
];
|
||||||
|
|
||||||
|
optional-dependencies = {
|
||||||
bcrypt = [
|
bcrypt = [
|
||||||
bcrypt
|
bcrypt
|
||||||
];
|
];
|
||||||
|
@ -64,7 +69,7 @@ buildPythonPackage rec {
|
||||||
openssh
|
openssh
|
||||||
openssl
|
openssl
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730
|
# Reverts https://github.com/ronf/asyncssh/commit/4b3dec994b3aa821dba4db507030b569c3a32730
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
, pythonRelaxDepsHook
|
, pythonRelaxDepsHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage {
|
||||||
version = "unstable-2023-07-28";
|
|
||||||
pname = "atomman";
|
pname = "atomman";
|
||||||
format = "pyproject";
|
version = "1.4.6-unstable-2023-07-28";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -36,14 +36,16 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-WfB+OY61IPprT6OCVHl8VA60p7lLVkRGuyYX+nm7bbA=";
|
hash = "sha256-WfB+OY61IPprT6OCVHl8VA60p7lLVkRGuyYX+nm7bbA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
wheel
|
wheel
|
||||||
pythonRelaxDepsHook
|
numpy
|
||||||
|
cython
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
cython
|
|
||||||
datamodeldict
|
datamodeldict
|
||||||
matplotlib
|
matplotlib
|
||||||
numericalunits
|
numericalunits
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonAtLeast
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
, configparser
|
, configparser
|
||||||
, pyparsing
|
, pyparsing
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
@ -14,23 +16,22 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.4.1";
|
|
||||||
format = "setuptools";
|
|
||||||
pname = "atsim-potentials";
|
pname = "atsim-potentials";
|
||||||
|
version = "0.4.1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mjdrushton";
|
owner = "mjdrushton";
|
||||||
repo = pname;
|
repo = "atsim-potentials";
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-G7lNqwEUwAT0f7M2nUTCxpXOAl6FWKlh7tcsvbur1eM=";
|
hash = "sha256-G7lNqwEUwAT0f7M2nUTCxpXOAl6FWKlh7tcsvbur1eM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
build-system = [
|
||||||
# Remove conflicting openpyxl dependency version check
|
setuptools
|
||||||
sed -i '/openpyxl==2.6.4/d' setup.py
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
cexprtk
|
cexprtk
|
||||||
configparser
|
configparser
|
||||||
future
|
future
|
||||||
|
@ -46,10 +47,21 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# these files try to import `distutils` removed in Python 3.12
|
||||||
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
|
||||||
|
"tests/config/test_configuration_eam.py"
|
||||||
|
"tests/config/test_configuration_eam_fs.py"
|
||||||
|
"tests/config/test_configuration_pair.py"
|
||||||
|
"tests/test_dlpoly_writeTABEAM.py"
|
||||||
|
"tests/test_documentation_examples.py"
|
||||||
|
"tests/test_eam_adp_writer.py"
|
||||||
|
"tests/test_gulp_writer.py"
|
||||||
|
"tests/test_lammpsWriteEAM.py"
|
||||||
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Missing lammps executable
|
# Missing lammps executable
|
||||||
"eam_tabulate_example2TestCase"
|
"eam_tabulate_example2TestCase"
|
||||||
"test_pymath"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "atsim.potentials" ];
|
pythonImportsCheck = [ "atsim.potentials" ];
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, stdenv
|
, stdenv
|
||||||
|
@ -10,18 +11,22 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aubio";
|
pname = "aubio";
|
||||||
version = "0.4.9";
|
version = "0.4.9";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = "aubio";
|
||||||
repo = pname;
|
repo = "aubio";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0fhxikvlr010nbh02g455d5y8bq6j5yw180cdh4gsd0hb43y3z26";
|
hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
numpy
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools
|
||||||
, stdenv
|
, stdenv
|
||||||
, AudioToolbox
|
, AudioToolbox
|
||||||
, AudioUnit
|
, AudioUnit
|
||||||
|
@ -10,7 +11,9 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "audiotools";
|
pname = "audiotools";
|
||||||
version = "3.1.1";
|
version = "3.1.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
AudioToolbox
|
AudioToolbox
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
# , pytrie
|
# , pytrie
|
||||||
, rlp
|
, rlp
|
||||||
, service-identity
|
, service-identity
|
||||||
|
, setuptools
|
||||||
, spake2
|
, spake2
|
||||||
, twisted
|
, twisted
|
||||||
, txaio
|
, txaio
|
||||||
|
@ -49,7 +50,7 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "autobahn";
|
pname = "autobahn";
|
||||||
version = "23.6.2";
|
version = "23.6.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
@ -60,10 +61,14 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "pytest>=2.8.6,<3.3.0" "pytest"
|
--replace-fail "pytest>=2.8.6,<3.3.0" "pytest"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
cryptography
|
cryptography
|
||||||
hyperlink
|
hyperlink
|
||||||
pynacl
|
pynacl
|
||||||
|
@ -74,9 +79,9 @@ buildPythonPackage rec {
|
||||||
mock
|
mock
|
||||||
pytest-asyncio_0_21
|
pytest-asyncio_0_21
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
] ++ passthru.optional-dependencies.scram
|
] ++ optional-dependencies.scram
|
||||||
++ passthru.optional-dependencies.serialization
|
++ optional-dependencies.serialization
|
||||||
++ passthru.optional-dependencies.xbr;
|
++ optional-dependencies.xbr;
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# Run asyncio tests (requires twisted)
|
# Run asyncio tests (requires twisted)
|
||||||
|
@ -91,7 +96,7 @@ buildPythonPackage rec {
|
||||||
"autobahn"
|
"autobahn"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = rec {
|
optional-dependencies = rec {
|
||||||
all = accelerate ++ compress ++ encryption ++ nvx ++ serialization ++ scram ++ twisted ++ ui ++ xbr;
|
all = accelerate ++ compress ++ encryption ++ nvx ++ serialization ++ scram ++ twisted ++ ui ++ xbr;
|
||||||
accelerate = [ /* wsaccel */ ];
|
accelerate = [ /* wsaccel */ ];
|
||||||
compress = [ python-snappy ];
|
compress = [ python-snappy ];
|
||||||
|
|
|
@ -2,13 +2,14 @@
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, setuptools
|
||||||
, boto3
|
, boto3
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "aws-mfa";
|
pname = "aws-mfa";
|
||||||
version = "0.0.12";
|
version = "0.0.12";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "broamski";
|
owner = "broamski";
|
||||||
|
@ -26,7 +27,11 @@ buildPythonApplication rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
boto3
|
boto3
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,13 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "apc-temp-fetch";
|
pname = "apc-temp-fetch";
|
||||||
version = "0.0.2";
|
version = "0.0.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
@ -18,7 +19,11 @@ buildPythonApplication rec {
|
||||||
hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo=";
|
hash = "sha256-lXGj/xrOkdMMYvuyVVSCojjQlzISFUT14VTn//iOARo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user