at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 cvxpy, 7 numpy, 8 pandas, 9 scipy, 10 matplotlib, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "pepit"; 16 version = "0.4.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "PerformanceEstimation"; 21 repo = "PEPit"; 22 tag = version; 23 hash = "sha256-6HF/BkDFUvui7CaVfOeJUQhl3QLLyE7aabDWcZ4tgXc="; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}" 29 ''; 30 31 build-system = [ 32 setuptools 33 ]; 34 35 dependencies = [ 36 cvxpy 37 numpy 38 pandas 39 scipy 40 matplotlib 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "PEPit" 49 ]; 50 51 meta = { 52 description = "Performance Estimation in Python"; 53 changelog = "https://pepit.readthedocs.io/en/latest/whatsnew/${version}.html"; 54 homepage = "https://pepit.readthedocs.io/"; 55 license = lib.licenses.mit; 56 maintainers = with lib.maintainers; [ wegank ]; 57 }; 58}