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