summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sasdata/default.nix
blob: 1a358248db4ec6ad4d54cae95c8b75d176cb9db4 (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
52
53
54
55
56
57
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  hatch-requirements-txt,
  hatch-sphinx,
  hatch-vcs,
  h5py,
  lxml,
  numpy,
  columnize,
  pytestCheckHook,
}:

let
  pname = "sasdata";
  version = "0.11.0";
in
buildPythonPackage {
  inherit pname version;
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-HIqEFN0Y+A4C6oF8NcI1puBt4SmyoNoAFobHQcYepnI=";
  };

  build-system = [
    hatchling
    hatch-requirements-txt
    hatch-sphinx
    hatch-vcs
    h5py
    lxml
    numpy
  ];

  dependencies = [ columnize ];

  nativeCheckInputs = [ pytestCheckHook ];

  # need network
  disabledTestPaths = [
    "test/sasdataloader/utest_extension_registry.py::ExtensionRegistryTests::test_compare_remote_file_to_local"
    "test/sasdataloader/utest_sesans.py::sesans_reader::test_full_load"
  ];

  pythonImportsCheck = [ "sasdata" ];

  meta = {
    description = "Package for loading and handling SAS data";
    homepage = "https://github.com/SasView/sasdata";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ kyehn ];
  };
}