depot/third_party/nixpkgs/pkgs/development/python-modules/dep-logic/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
952 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pdm-backend,
packaging,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "dep-logic";
version = "0.4.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pdm-project";
repo = "dep-logic";
rev = "refs/tags/${version}";
hash = "sha256-z5PXecu63/9sO73ruYX6+ZIq2DSVYljd3bKapJIemDA=";
};
nativeBuildInputs = [ pdm-backend ];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "dep_logic" ];
meta = {
changelog = "https://github.com/pdm-project/dep-logic/releases/tag/${lib.removePrefix "refs/tags/" 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 ];
};
}