summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/csaps/default.nix
blob: df2a58b56c7b0fca308c7d6d5962884aed7c2f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,

  poetry-core,
  setuptools,

  typing-extensions,
  numpy,
  scipy,
}:

buildPythonPackage rec {
  pname = "csaps";
  version = "1.3.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "espdev";
    repo = "csaps";
    tag = "v${version}";
    hash = "sha256-1pNJaNExhcRWDjJenEKp1eJ4wZMFXxwWcmepEt6/p0s=";
  };

  build-system = [
    poetry-core
    setuptools
  ];

  dependencies = [
    typing-extensions
    numpy
    scipy
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "csaps" ];

  meta = {
    description = "Cubic spline approximation (smoothing)";
    homepage = "https://github.com/espdev/csaps";
    changelog = "https://github.com/espdev/csaps/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ flokli ];
  };
}