Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / opytimark / default.nix
blob69eb61f795bf587c8010f39e4e725293ea400726
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , numpy
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "opytimark";
12   version = "1.0.8";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "gugarosa";
19     repo = "opytimark";
20     rev = "v${version}";
21     hash = "sha256-T3OFm10gvGrUXAAHOnO0Zv1nWrXPBXSmEWnbJxrWYU0=";
22   };
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   ];
31   propagatedBuildInputs = [
32     numpy
33   ];
35   nativeCheckInputs = [
36     pytestCheckHook
37   ];
39   # several tests are failing
40   disabledTests = [
41     "test_year"
42     "test_decorator"
43     "test_loader"
44     "cec_benchmark"
45   ];
47   pythonImportsCheck = [
48     "opytimark"
49   ];
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   };