diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-05-26 16:57:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-26 16:57:09 +0200 |
commit | d3a72e4b3050f25b1a856b2c3b185800249dac80 (patch) | |
tree | 5f47b85534013661c0f23f7484c1322e531c901f | |
parent | fa9766d77b8e54e01f73800cc3b83fc5decb3b8b (diff) | |
download | nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.tar nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.tar.gz nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.tar.bz2 nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.tar.lz nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.tar.xz nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.tar.zst nixpkgs-d3a72e4b3050f25b1a856b2c3b185800249dac80.zip |
python310Packages.pyprecice: disable on older Python releases
-rw-r--r-- | pkgs/development/python-modules/pyprecice/default.nix | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pyprecice/default.nix b/pkgs/development/python-modules/pyprecice/default.nix index 8b1ff9822d1..4a78da43525 100644 --- a/pkgs/development/python-modules/pyprecice/default.nix +++ b/pkgs/development/python-modules/pyprecice/default.nix @@ -1,20 +1,40 @@ -{ lib, buildPythonPackage, fetchFromGitHub, precice, numpy, mpi4py, cython }: +{ lib +, buildPythonPackage +, cython +, fetchFromGitHub +, mpi4py +, numpy +, precice +, pythonOlder +}: buildPythonPackage rec { pname = "pyprecice"; version = "2.4.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "precice"; repo = "python-bindings"; rev = "refs/tags/v${version}"; - sha256 = "sha256-Endy5oiC1OWdtZlVPUkIdkzoDTc1b5TaQ6VEUWq5iSg="; + hash = "sha256-Endy5oiC1OWdtZlVPUkIdkzoDTc1b5TaQ6VEUWq5iSg="; }; - nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ numpy mpi4py precice ]; + nativeBuildInputs = [ + cython + ]; + + propagatedBuildInputs = [ + numpy + mpi4py + precice + ]; - doCheck = false; # Disable Test because everything depends on open mpi which requires network. + # Disable Test because everything depends on open mpi which requires network + doCheck = false; + # Do not use pythonImportsCheck because this will also initialize mpi which requires a network interface meta = with lib; { |