Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchPypi 3, buildPythonPackage 4, pythonOlder 5, pandas 6, numpy 7, scipy 8, filelock 9, pytest 10, nose 11, parameterized 12}: 13 14buildPythonPackage rec { 15 pname = "theano-pymc"; 16 version = "1.1.2"; 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 pname = "Theano-PyMC"; 21 inherit version; 22 sha256 = "5da6c2242ea72a991c8446d7fe7d35189ea346ef7d024c890397011114bf10fc"; 23 }; 24 25 # No need for coverage stats in Nix builds 26 postPatch = '' 27 substituteInPlace setup.py --replace ", 'pytest-cov'" "" 28 ''; 29 30 propagatedBuildInputs = [ 31 pandas 32 numpy 33 scipy 34 filelock 35 ]; 36 37 # The test suite is computationally intensive and test failures are not 38 # indicative for package usability hence tests are disabled by default. 39 doCheck = false; 40 pythonImportsCheck = [ "theano" ]; 41 42 meta = { 43 description = "PyMC theano fork"; 44 homepage = "https://github.com/majidaldo/Theano-PyMC"; 45 license = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ nidabdella ]; 47 broken = true; 48 }; 49}