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