mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-31 18:15:54 +00:00
python312Packages.pypitoken: refactor
This commit is contained in:
parent
4dde341229
commit
a84289e513
@ -5,6 +5,7 @@
|
||||
jsonschema,
|
||||
poetry-core,
|
||||
pymacaroons,
|
||||
pytest-cov-stub,
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
@ -14,30 +15,32 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pypitoken";
|
||||
version = "7.0.1";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ewjoachim";
|
||||
repo = pname;
|
||||
repo = "pypitoken";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-1SUR6reZywgFpSdD49E5PjEDNrlvsHH4TK6SkXStUws=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
pymacaroons
|
||||
jsonschema
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-cov-stub
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
@ -47,8 +50,8 @@ buildPythonPackage rec {
|
||||
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 ];
|
||||
changelog = "https://github.com/ewjoachim/pypitoken/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user