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