Merge pull request #161947 from nidabdella/fix/python-pymc3
This commit is contained in:
commit
c69ce893af
|
@ -8822,6 +8822,12 @@
|
||||||
githubId = 8214542;
|
githubId = 8214542;
|
||||||
name = "Nicolò Balzarotti";
|
name = "Nicolò Balzarotti";
|
||||||
};
|
};
|
||||||
|
nidabdella = {
|
||||||
|
name = "Mohamed Nidabdella";
|
||||||
|
email = "nidabdella.mohamed@gmail.com";
|
||||||
|
github = "nidabdella";
|
||||||
|
githubId = 8083813;
|
||||||
|
};
|
||||||
NieDzejkob = {
|
NieDzejkob = {
|
||||||
email = "kuba@kadziolka.net";
|
email = "kuba@kadziolka.net";
|
||||||
github = "NieDzejkob";
|
github = "NieDzejkob";
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, Theano
|
, theano-pymc
|
||||||
, pandas
|
, pandas
|
||||||
, patsy
|
, patsy
|
||||||
, joblib
|
, joblib
|
||||||
|
, cachetools
|
||||||
, tqdm
|
, tqdm
|
||||||
, six
|
, six
|
||||||
, h5py
|
, h5py
|
||||||
|
@ -16,6 +17,8 @@
|
||||||
, parameterized
|
, parameterized
|
||||||
, fastprogress
|
, fastprogress
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
|
, dill
|
||||||
|
, semver
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -34,7 +37,6 @@ buildPythonPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
Theano
|
|
||||||
pandas
|
pandas
|
||||||
patsy
|
patsy
|
||||||
joblib
|
joblib
|
||||||
|
@ -45,12 +47,10 @@ buildPythonPackage rec {
|
||||||
packaging
|
packaging
|
||||||
fastprogress
|
fastprogress
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
dill
|
||||||
|
theano-pymc
|
||||||
checkInputs = [
|
cachetools
|
||||||
pytest
|
semver
|
||||||
nose
|
|
||||||
parameterized
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# The test suite is computationally intensive and test failures are not
|
# The test suite is computationally intensive and test failures are not
|
||||||
|
@ -67,9 +67,6 @@ buildPythonPackage rec {
|
||||||
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
|
description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)";
|
||||||
homepage = "https://github.com/pymc-devs/pymc3";
|
homepage = "https://github.com/pymc-devs/pymc3";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ ilya-kolpakov ];
|
maintainers = with lib.maintainers; [ nidabdella ];
|
||||||
# several dependencies are not declared and in the end it requires theano-pymc3
|
|
||||||
# instead of Theano. The former is currently not packaged.
|
|
||||||
broken = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
48
pkgs/development/python-modules/theano-pymc/default.nix
Normal file
48
pkgs/development/python-modules/theano-pymc/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
{ lib
|
||||||
|
, fetchPypi
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, pandas
|
||||||
|
, numpy
|
||||||
|
, scipy
|
||||||
|
, filelock
|
||||||
|
, pytest
|
||||||
|
, nose
|
||||||
|
, parameterized
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "theano-pymc";
|
||||||
|
version = "1.1.2";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "Theano-PyMC";
|
||||||
|
inherit version;
|
||||||
|
sha256 = "5da6c2242ea72a991c8446d7fe7d35189ea346ef7d024c890397011114bf10fc";
|
||||||
|
};
|
||||||
|
|
||||||
|
# No need for coverage stats in Nix builds
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py --replace ", 'pytest-cov'" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pandas
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
filelock
|
||||||
|
];
|
||||||
|
|
||||||
|
# The test suite is computationally intensive and test failures are not
|
||||||
|
# indicative for package usability hence tests are disabled by default.
|
||||||
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "theano" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "PyMC theano fork";
|
||||||
|
homepage = "https://github.com/majidaldo/Theano-PyMC";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ nidabdella ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9904,6 +9904,8 @@ in {
|
||||||
|
|
||||||
tgcrypto = callPackage ../development/python-modules/tgcrypto { };
|
tgcrypto = callPackage ../development/python-modules/tgcrypto { };
|
||||||
|
|
||||||
|
theano-pymc = callPackage ../development/python-modules/theano-pymc { };
|
||||||
|
|
||||||
Theano = callPackage ../development/python-modules/Theano rec {
|
Theano = callPackage ../development/python-modules/Theano rec {
|
||||||
cudaSupport = pkgs.config.cudaSupport or false;
|
cudaSupport = pkgs.config.cudaSupport or false;
|
||||||
cudnnSupport = cudaSupport;
|
cudnnSupport = cudaSupport;
|
||||||
|
|
Loading…
Reference in a new issue