Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pwlf / default.nix
blob8259a41e2e40ac941ead911b75413aa242fb44fb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , wheel
6 , scipy
7 , numpy
8 , pydoe
9 , unittestCheckHook
12 buildPythonPackage rec {
13   pname = "pwlf";
14   version = "2.2.1";
15   pyproject = true;
17   src = fetchFromGitHub {
18     owner = "cjekel";
19     repo = "piecewise_linear_fit_py";
20     rev = "v${version}";
21     hash = "sha256-gjdahulpHjBmOlKOCPF9WmrWe4jn/+0oVI4o09EX7qE=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     wheel
27   ];
29   propagatedBuildInputs = [
30     scipy
31     numpy
32     pydoe
33   ];
35   nativeCheckInputs = [
36     unittestCheckHook
37   ];
39   pythonImportsCheck = [ "pwlf" ];
41   meta = with lib; {
42     description = "Fit piecewise linear data for a specified number of line segments";
43     homepage = "https://jekel.me/piecewise_linear_fit_py/";
44     changelog = "https://github.com/cjekel/piecewise_linear_fit_py/blob/${src.rev}/CHANGELOG.md";
45     license = licenses.mit;
46     maintainers = with maintainers; [ doronbehar ];
47   };