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