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

40 lines
922 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pdm-backend,
packaging,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dep-logic";
version = "0.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pdm-project";
repo = "dep-logic";
rev = "refs/tags/${version}";
hash = "sha256-NB0TR7fCtjSm4cAl+Fy+6c+z1ZBDiRw7nXux/s6ON/c=";
};
nativeBuildInputs = [ pdm-backend ];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dep_logic" ];
meta = {
changelog = "https://github.com/pdm-project/dep-logic/releases/tag/${src.rev}";
description = "Python dependency specifications supporting logical operations";
homepage = "https://github.com/pdm-project/dep-logic";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ tomasajt ];
};
}