1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, numpy 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "opytimark"; 12 version = "1.0.8"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "gugarosa"; 19 repo = "opytimark"; 20 rev = "v${version}"; 21 hash = "sha256-T3OFm10gvGrUXAAHOnO0Zv1nWrXPBXSmEWnbJxrWYU0="; 22 }; 23 24 patches = [ 25 (fetchpatch { 26 url = "https://patch-diff.githubusercontent.com/raw/gugarosa/opytimark/pull/2.patch"; 27 hash = "sha256-r/oCKI9Q1nuCZDGHx7UW8j523sFe4EFmguMOJTs/LOU="; 28 }) 29 ]; 30 31 propagatedBuildInputs = [ 32 numpy 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 # several tests are failing 40 disabledTests = [ 41 "test_year" 42 "test_decorator" 43 "test_loader" 44 "cec_benchmark" 45 ]; 46 47 pythonImportsCheck = [ 48 "opytimark" 49 ]; 50 51 meta = with lib; { 52 description = "Library consisting of optimization benchmarking functions"; 53 homepage = "https://github.com/gugarosa/opytimark"; 54 changelog = "https://github.com/gugarosa/opytimark/releases/tag/v${version}"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ firefly-cpp ]; 57 }; 58}