Merge pull request #203088 from fabaff/fasteners-bump

python310Packages.fasteners: 0.17.3 -> 0.18
This commit is contained in:
Fabian Affolter 2022-12-03 22:37:06 +01:00 committed by GitHub
commit 6f6201c860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 103 additions and 51 deletions

View File

@ -1,18 +1,21 @@
{ stdenv
, lib
{ lib
, stdenv
, buildPythonPackage
, dask
, distributed
, fetchFromGitHub
, grpcio
, pytestCheckHook
, pythonOlder
, distributed
, dask
, grpcio
, skein
}:
buildPythonPackage rec {
pname = "dask-yarn";
version = "0.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dask";
@ -28,14 +31,30 @@ buildPythonPackage rec {
skein
];
checkInputs = [ pytestCheckHook ];
checkInputs = [
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR
'';
pythonImportsCheck = [ "dask_yarn" ];
pythonImportsCheck = [
"dask_yarn"
];
disabledTests = [
# skein.exceptions.DriverError: Failed to start java process
"test_basic"
"test_adapt"
"test_from_specification"
"test_from_application_id"
"test_from_current"
"test_basic_async"
"test_widget_and_html_reprs"
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Deploy dask on YARN clusters";
longDescription = ''Dask-Yarn deploys Dask on YARN clusters,
such as are found in traditional Hadoop installations.
@ -45,5 +64,6 @@ buildPythonPackage rec {
homepage = "https://yarn.dask.org/";
license = licenses.bsd3;
maintainers = with maintainers; [ illustris ];
broken = stdenv.isDarwin;
};
}

View File

@ -1,36 +1,40 @@
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
{ lib
, anytree
, nbval
, sympy
, scipy
, buildPythonPackage
, cached-property
, psutil
, py-cpuinfo
, cgen
, click
, multidict
, distributed
, pyrevolve
, codepy
, pytestCheckHook
, matplotlib
, pytest-xdist
, distributed
, fetchFromGitHub
, gcc
, llvmPackages
, matplotlib
, multidict
, nbval
, psutil
, py-cpuinfo
, pyrevolve
, pytest-xdist
, pytestCheckHook
, pythonOlder
, scipy
, stdenv
, sympy
}:
buildPythonPackage rec {
pname = "devito";
version = "4.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "devitocodes";
repo = "devito";
rev = "v${version}";
sha256 = "sha256-crKTxlueE8NGjAqu625iFvp35UK2U7+9kl8rpbzf0gs=";
rev = "refs/tags/v${version}";
hash = "sha256-crKTxlueE8NGjAqu625iFvp35UK2U7+9kl8rpbzf0gs=";
};
postPatch = ''
@ -48,7 +52,30 @@ buildPythonPackage rec {
-i requirements.txt
'';
checkInputs = [ pytestCheckHook pytest-xdist matplotlib gcc ];
propagatedBuildInputs = [
anytree
cached-property
cgen
click
codepy
distributed
nbval
multidict
psutil
py-cpuinfo
pyrevolve
scipy
sympy
] ++ lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
checkInputs = [
pytestCheckHook
pytest-xdist
matplotlib
gcc
];
# I've had to disable the following tests since they fail while using nix-build, but they do pass
# outside the build. They mostly related to the usage of MPI in a sandboxed environment.
@ -64,6 +91,11 @@ buildPythonPackage rec {
"test_subdomainset_mpi"
"test_init_omp_env_w_mpi"
"test_mpi_nocomms"
"test_shortcuts"
"est_docstrings"
"test_docstrings[finite_differences.coefficients]"
"test_coefficients_w_xreplace"
"test_loop_bounds_forward"
];
disabledTestPaths = [
@ -76,27 +108,14 @@ buildPythonPackage rec {
"tests/test_gradient.py"
];
propagatedBuildInputs = [
anytree
cached-property
cgen
click
codepy
distributed
nbval
multidict
psutil
py-cpuinfo
pyrevolve
scipy
sympy
] ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
pythonImportsCheck = [ "devito" ];
pythonImportsCheck = [
"devito"
];
meta = with lib; {
homepage = "https://www.devitoproject.org/";
description = "Code generation framework for automated finite difference computation";
homepage = "https://www.devitoproject.org/";
changelog = "https://github.com/devitocodes/devito/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ atila ];
};

View File

@ -1,22 +1,26 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, diskcache
, eventlet
, fetchFromGitHub
, more-itertools
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "fasteners";
version = "0.17.3";
version = "0.18";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "harlowja";
repo = pname;
rev = version;
hash = "sha256-FVhHp8BZ/wQQyr5AcuDo94LlflixhjZ0SnheSdHuDVQ=";
rev = "refs/tags/${version}";
hash = "sha256-FGcGGRfObOqXuURyEuNt/KDn51POpdNPUJJKtMcLJNI=";
};
nativeBuildInputs = [
@ -25,15 +29,24 @@ buildPythonPackage rec {
checkInputs = [
diskcache
eventlet
more-itertools
pytestCheckHook
];
pythonImportsCheck = [
"fasteners"
];
pytestFlagsArray = [
"tests/"
];
meta = with lib; {
description = "A python package that provides useful locks";
description = "Module that provides useful locks";
homepage = "https://github.com/harlowja/fasteners";
changelog = "https://github.com/harlowja/fasteners/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}