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