1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 pythonOlder, 6 fetchFromGitLab, 7 setuptools, 8 setuptools-scm, 9 charset-normalizer, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "python-debian"; 15 version = "1.0.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitLab { 21 domain = "salsa.debian.org"; 22 owner = "python-debian-team"; 23 repo = "python-debian"; 24 tag = version; 25 hash = "sha256-lSKtlBqAa8cJZZHMVb90eYIGem4DwVZLldaYSAJBNek="; 26 }; 27 28 build-system = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 dependencies = [ 34 charset-normalizer 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 ]; 40 41 disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ 42 "tests/test_debfile.py" 43 ]; 44 45 pythonImportsCheck = [ "debian" ]; 46 47 meta = { 48 description = "Debian package related modules"; 49 homepage = "https://salsa.debian.org/python-debian-team/python-debian"; 50 changelog = "https://salsa.debian.org/python-debian-team/python-debian/-/blob/master/debian/changelog"; 51 license = lib.licenses.gpl2Plus; 52 maintainers = with lib.maintainers; [ nickcao ]; 53 }; 54}