at master 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pythonOlder, 7 setuptools, 8 numpy, 9 scipy, 10 matplotlib, 11 plotly, 12 pandas, 13 hypothesis, 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "synergy"; 19 version = "1.0.0"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.5"; 23 24 src = fetchFromGitHub { 25 owner = "djwooten"; 26 repo = "synergy"; 27 tag = "v${version}"; 28 hash = "sha256-df5CBEcRx55/rSMc6ygMVrHbbEcnU1ISJheO+WoBSCI="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 numpy 35 scipy 36 matplotlib 37 plotly 38 pandas 39 ]; 40 41 nativeCheckInputs = [ 42 hypothesis 43 pytestCheckHook 44 ]; 45 46 disabledTests = [ 47 # flaky: hypothesis.errors.FailedHealthCheck 48 "test_asymptotic_limits" 49 "test_inverse" 50 # AssertionError: synthetic_BRAID_reference_1.csv 51 # E3=0 not in (0.10639582639915163, 1.6900177333904622) 52 "test_BRAID_fit_bootstrap" 53 ] 54 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 55 # AssertionError: np.False_ is not true 56 "test_fit_loewe_antagonism" 57 ]; 58 59 pythonImportsCheck = [ "synergy" ]; 60 61 meta = with lib; { 62 description = "Python library for calculating, analyzing, and visualizing drug combination synergy"; 63 homepage = "https://github.com/djwooten/synergy"; 64 maintainers = [ ]; 65 license = licenses.gpl3Plus; 66 }; 67}