summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pysrim/default.nix
blob: 8e470d8c927cbadff741ed4b2b3655c08fb22b52 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  numpy,
  pyyaml,
}:

buildPythonPackage rec {
  pname = "pysrim";
  version = "0.5.10";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-raCI9z9+GjvwhSBugeD4PticHQsjp4ns0LoKJQckrug=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "'pytest-runner', " ""
  '';

  build-system = [ setuptools ];

  dependencies = [
    numpy
    pyyaml
  ];

  # Tests require git lfs download of repository
  doCheck = false;

  # pythonImportsCheck does not work
  # TypeError: load() missing 1 required positional argument: 'Loader'

  meta = {
    description = "Srim Automation of Tasks via Python";
    homepage = "https://gitlab.com/costrouc/pysrim";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}