2022-05-20 14:49:21 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2018-10-26 03:50:06 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-01-21 21:15:03 +01:00
|
|
|
, python
|
2022-05-20 14:49:21 +02:00
|
|
|
, pythonOlder
|
2018-10-26 03:50:06 +02:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ppft";
|
2024-01-31 08:43:45 +01:00
|
|
|
version = "1.7.6.8";
|
2022-05-20 14:49:21 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-10-26 03:50:06 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-31 08:43:45 +01:00
|
|
|
hash = "sha256-dqQpp9e3TE10P226g1HljWK2Qy7WXfn+IEeQFg2rmW0=";
|
2018-10-26 03:50:06 +02:00
|
|
|
};
|
|
|
|
|
2022-05-20 14:49:21 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
];
|
2018-10-26 03:50:06 +02:00
|
|
|
|
2020-01-21 21:15:03 +01:00
|
|
|
# darwin seems to hang
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2023-08-26 13:24:08 +02:00
|
|
|
|
2020-01-21 21:15:03 +01:00
|
|
|
checkPhase = ''
|
2022-12-30 20:13:33 +01:00
|
|
|
runHook preCheck
|
2020-01-21 21:15:03 +01:00
|
|
|
${python.interpreter} -m ppft.tests
|
2022-12-30 20:13:33 +01:00
|
|
|
runHook postCheck
|
2020-01-21 21:15:03 +01:00
|
|
|
'';
|
2019-12-24 10:28:23 +01:00
|
|
|
|
2022-05-20 14:49:21 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ppft"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-20 14:49:21 +02:00
|
|
|
description = "Distributed and parallel Python";
|
|
|
|
homepage = "https://ppft.readthedocs.io/";
|
2024-03-07 22:07:32 +01:00
|
|
|
changelog = "https://github.com/uqfoundation/ppft/releases/tag/${version}";
|
2018-10-26 03:50:06 +02:00
|
|
|
license = licenses.bsd3;
|
2022-05-20 14:49:21 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-26 03:50:06 +02:00
|
|
|
};
|
|
|
|
}
|