1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 6 # build-system 7 setuptools, 8 setuptools-scm, 9 10 # dependencies 11 typing-extensions, 12 13 # nativeCheckInputs 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "declinate"; 19 version = "0.0.6"; 20 pyproject = true; 21 22 src = fetchFromGitLab { 23 owner = "ternaris"; 24 repo = "declinate"; 25 tag = "v${version}"; 26 hash = "sha256-JEO/GtbG/yQuj8vJJaWex9mGy6qpWOPHGlKrdG9vt28="; 27 }; 28 29 build-system = [ 30 setuptools 31 setuptools-scm 32 ]; 33 34 dependencies = [ 35 typing-extensions 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "declinate" 44 ]; 45 46 meta = { 47 description = "Command line interface generator"; 48 homepage = "https://gitlab.com/ternaris/declinate"; 49 changelog = "https://gitlab.com/ternaris/declinate/-/blob/${src.tag}/CHANGES.rst"; 50 license = lib.licenses.asl20; 51 maintainers = with lib.maintainers; [ nim65s ]; 52 }; 53}