depot/third_party/nixpkgs/pkgs/development/python-modules/devpi-common/default.nix

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
lazy,
packaging-legacy,
pytestCheckHook,
pythonOlder,
requests,
setuptools-changelog-shortener,
setuptools,
tomli,
nix-update-script,
}:
buildPythonPackage rec {
pname = "devpi-common";
version = "4.0.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "devpi_common";
inherit version;
hash = "sha256-I1oKmkXJblTGC6a6L3fYVs+Q8aacG+6UmIfp7cA6Qcw=";
};
build-system = [
setuptools
setuptools-changelog-shortener
];
dependencies = [
lazy
packaging-legacy
requests
tomli
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "devpi_common" ];
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/devpi/devpi";
description = "Utilities jointly used by devpi-server and devpi-client";
changelog = "https://github.com/devpi/devpi/blob/common-${version}/common/CHANGELOG";
license = licenses.mit;
maintainers = with maintainers; [
lewo
makefu
];
};
}