about summary refs log tree commit diff
path: root/pkgs/development/python-modules/synergy/default.nix
blob: 6666d2db45e50869abf040702e607d4a3497912f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  numpy,
  scipy,
  matplotlib,
  plotly,
  pandas,
}:

buildPythonPackage rec {
  pname = "synergy";
  version = "0.5.1";
  format = "setuptools";
  disabled = pythonOlder "3.5";

  # Pypi does not contain unit tests
  src = fetchFromGitHub {
    owner = "djwooten";
    repo = "synergy";
    rev = "v${version}";
    sha256 = "1c60dpvr72g4wjqg6bc601kssl5z55v9bg09xbyh9ahch58bi212";
  };

  propagatedBuildInputs = [
    numpy
    scipy
    matplotlib
    plotly
    pandas
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "synergy" ];

  meta = with lib; {
    description = "Python library for calculating, analyzing, and visualizing drug combination synergy";
    homepage = "https://github.com/djwooten/synergy";
    maintainers = [ ];
    license = licenses.gpl3Plus;
  };
}