1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, pythonOlder
6, pyyaml
7}:
8
9buildPythonPackage rec {
10 pname = "pysrim";
11 version = "0.5.10";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-raCI9z9+GjvwhSBugeD4PticHQsjp4ns0LoKJQckrug=";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.py \
23 --replace "'pytest-runner', " ""
24 '';
25
26 propagatedBuildInputs = [
27 numpy
28 pyyaml
29 ];
30
31 # Tests require git lfs download of repository
32 doCheck = false;
33
34 # pythonImportsCheck does not work
35 # TypeError: load() missing 1 required positional argument: 'Loader'
36
37 meta = with lib; {
38 description = "Srim Automation of Tasks via Python";
39 homepage = "https://gitlab.com/costrouc/pysrim";
40 license = licenses.mit;
41 maintainers = with maintainers; [ costrouc ];
42 };
43}