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