Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 numpy, 8 scipy, 9 matplotlib, 10 plotly, 11 pandas, 12}: 13 14buildPythonPackage rec { 15 pname = "synergy"; 16 version = "0.5.1"; 17 format = "setuptools"; 18 disabled = pythonOlder "3.5"; 19 20 # Pypi does not contain unit tests 21 src = fetchFromGitHub { 22 owner = "djwooten"; 23 repo = "synergy"; 24 rev = "v${version}"; 25 sha256 = "1c60dpvr72g4wjqg6bc601kssl5z55v9bg09xbyh9ahch58bi212"; 26 }; 27 28 propagatedBuildInputs = [ 29 numpy 30 scipy 31 matplotlib 32 plotly 33 pandas 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 pythonImportsCheck = [ "synergy" ]; 38 39 meta = with lib; { 40 description = "Python library for calculating, analyzing, and visualizing drug combination synergy"; 41 homepage = "https://github.com/djwooten/synergy"; 42 maintainers = [ ]; 43 license = licenses.gpl3Plus; 44 }; 45}