depot/third_party/nixpkgs/pkgs/development/python-modules/dep-logic/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

47 lines
922 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pdm-backend
, packaging
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dep-logic";
version = "0.0.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pdm-project";
repo = "dep-logic";
rev = version;
hash = "sha256-AFiCNzHlo3BADqbjRBruA80cfM6Ytdb+gReEg5hUmro=";
};
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 ];
};
}