depot/third_party/nixpkgs/pkgs/development/python-modules/pysrim/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
863 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; [ ];
};
}