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

45 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
incremental,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "systembridgemodels";
version = "4.0.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "timmo001";
repo = "system-bridge-models";
rev = "refs/tags/${version}";
hash = "sha256-iFJ95ouhfbaC0D2Gkc1KO+JueYTFTOj1unnYSDyPAe8=";
};
postPatch = ''
substituteInPlace systembridgemodels/_version.py \
--replace-fail ", dev=1" ""
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ incremental ];
pythonImportsCheck = [ "systembridgemodels" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
changelog = "https://github.com/timmo001/system-bridge-models/releases/tag/${version}";
description = "This is the models package used by the System Bridge project";
homepage = "https://github.com/timmo001/system-bridge-models";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}