1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, jsonschema 5, poetry-core 6, pymacaroons 7, pytest-mock 8, pytestCheckHook 9, pythonOlder 10, typing-extensions 11}: 12 13buildPythonPackage rec { 14 pname = "pypitoken"; 15 version = "7.0.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "ewjoachim"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-1SUR6reZywgFpSdD49E5PjEDNrlvsHH4TK6SkXStUws="; 25 }; 26 27 postPatch = '' 28 sed -i "/--cov/d" setup.cfg 29 ''; 30 31 nativeBuildInputs = [ 32 poetry-core 33 ]; 34 35 propagatedBuildInputs = [ 36 pymacaroons 37 jsonschema 38 typing-extensions 39 ]; 40 41 nativeCheckInputs = [ 42 pytest-mock 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "pypitoken" 48 ]; 49 50 meta = with lib; { 51 description = "Library for generating and manipulating PyPI tokens"; 52 homepage = "https://pypitoken.readthedocs.io/"; 53 changelog = "https://github.com/ewjoachim/pypitoken/releases/tag/6.0.3${version}"; 54 license = with licenses; [ mit ]; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}