mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
Merge pull request #218194 from fabaff/devpi-client-fix
devpi-client: 5.2.3 -> 6.0.3
This commit is contained in:
commit
6d394a5862
57
pkgs/development/python-modules/pypitoken/default.nix
Normal file
57
pkgs/development/python-modules/pypitoken/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, jsonschema
|
||||
, poetry-core
|
||||
, pymacaroons
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, typing-extensions
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pypitoken";
|
||||
version = "6.0.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ewjoachim";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-1kPIVcxpFjqlAnPh71iS07n9M0qcFrwMRV8k38YxHBc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pymacaroons
|
||||
jsonschema
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pypitoken"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for generating and manipulating PyPI tokens";
|
||||
homepage = "https://pypitoken.readthedocs.io/";
|
||||
changelog = "https://github.com/ewjoachim/pypitoken/releases/tag/6.0.3${version}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -1,32 +1,19 @@
|
||||
{ lib
|
||||
, argon2-cffi-bindings
|
||||
, buildPythonApplication
|
||||
, check-manifest
|
||||
, devpi-common
|
||||
, devpi-server
|
||||
, fetchPypi
|
||||
, git
|
||||
, glibcLocales
|
||||
, mercurial
|
||||
, mock
|
||||
, pkginfo
|
||||
, pluggy
|
||||
, py
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
, sphinx
|
||||
, tox
|
||||
, webtest
|
||||
, wheel
|
||||
, python3
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "devpi-client";
|
||||
version = "5.2.3";
|
||||
version = "6.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
format = "setuptools";
|
||||
|
||||
src = python3.pkgs.fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Ni6ybpUTankkkYYcwnKNFKYwmp1MTxOnucPm/TneWOw=";
|
||||
hash = "sha256-csdQUxnopH+kYtoqdvyXKNW3fGkQNSREJYxjes9Dgi8=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -38,12 +25,16 @@ buildPythonApplication rec {
|
||||
glibcLocales
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
argon2-cffi-bindings
|
||||
build
|
||||
check-manifest
|
||||
devpi-common
|
||||
iniconfig
|
||||
pep517
|
||||
pkginfo
|
||||
pluggy
|
||||
platformdirs
|
||||
py
|
||||
setuptools
|
||||
];
|
||||
@ -51,14 +42,16 @@ buildPythonApplication rec {
|
||||
nativeCheckInputs = [
|
||||
devpi-server
|
||||
git
|
||||
] ++ (with python3.pkgs; [
|
||||
mercurial
|
||||
mock
|
||||
pypitoken
|
||||
pytestCheckHook
|
||||
sphinx
|
||||
tox
|
||||
virtualenv
|
||||
webtest
|
||||
wheel
|
||||
];
|
||||
]);
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
@ -74,8 +67,9 @@ buildPythonApplication rec {
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://doc.devpi.net";
|
||||
description = "Client for devpi, a pypi index server and packaging meta tool";
|
||||
homepage = "http://doc.devpi.net";
|
||||
changelog = "https://github.com/devpi/devpi/blob/client-${version}/client/CHANGELOG";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lewo makefu ];
|
||||
};
|
||||
|
@ -8604,6 +8604,8 @@ self: super: with self; {
|
||||
|
||||
pypiserver = callPackage ../development/python-modules/pypiserver { };
|
||||
|
||||
pypitoken = callPackage ../development/python-modules/pypitoken { };
|
||||
|
||||
pyplaato = callPackage ../development/python-modules/pyplaato { };
|
||||
|
||||
pyplatec = callPackage ../development/python-modules/pyplatec { };
|
||||
|
Loading…
Reference in New Issue
Block a user