depot/third_party/nixpkgs/pkgs/development/python-modules/pysrim/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

43 lines
864 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pythonOlder
, pyyaml
}:
buildPythonPackage rec {
pname = "pysrim";
version = "0.5.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-raCI9z9+GjvwhSBugeD4PticHQsjp4ns0LoKJQckrug=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner', " ""
'';
propagatedBuildInputs = [
numpy
pyyaml
];
# Tests require git lfs download of repository
doCheck = false;
# pythonImportsCheck does not work
# TypeError: load() missing 1 required positional argument: 'Loader'
meta = with lib; {
description = "Srim Automation of Tasks via Python";
homepage = "https://gitlab.com/costrouc/pysrim";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}