nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 82 lines 1.9 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 setuptools, 6 setuptools-scm, 7 requests, 8 ndjson, 9 flask, 10 importlib-metadata, 11 swh-core, 12 swh-model, 13 swh-auth, 14 swh-web-client, 15 beautifulsoup4, 16 pytestCheckHook, 17 pytest-flask, 18 pytest-mock, 19 types-beautifulsoup4, 20 types-pyyaml, 21 types-requests, 22}: 23 24buildPythonPackage rec { 25 pname = "swh-scanner"; 26 version = "0.8.3"; 27 pyproject = true; 28 29 src = fetchFromGitLab { 30 domain = "gitlab.softwareheritage.org"; 31 group = "swh"; 32 owner = "devel"; 33 repo = "swh-scanner"; 34 tag = "v${version}"; 35 hash = "sha256-baUUuYFapBD7iuDaDP8CSR9f4glVZcS5qBpZddVf7z8="; 36 }; 37 38 build-system = [ 39 setuptools 40 setuptools-scm 41 ]; 42 43 dependencies = [ 44 requests 45 ndjson 46 flask 47 importlib-metadata 48 swh-core 49 swh-model 50 swh-auth 51 swh-web-client 52 ]; 53 54 pythonImportsCheck = [ "swh.scanner" ]; 55 56 nativeCheckInputs = [ 57 beautifulsoup4 58 pytestCheckHook 59 pytest-flask 60 pytest-mock 61 swh-core 62 swh-model 63 types-beautifulsoup4 64 types-pyyaml 65 types-requests 66 ]; 67 68 disabledTestPaths = [ 69 # pytestRemoveBytecodePhase fails with: "error (ignored): error: opening directory "/tmp/nix-build-python3.12-swh-scanner-0.8.3.drv-5/build/pytest-of-nixbld/pytest-0/test_randomdir_policy_info_cal0/big-directory/dir/dir/dir/ ......" 70 "swh/scanner/tests/test_policy.py" 71 # TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' 72 "swh/scanner/tests/test_cli.py" 73 ]; 74 75 meta = { 76 changelog = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner/-/tags/${src.tag}"; 77 description = "Source code scanner to analyze code bases and compare them with source code artifacts archived by Software Heritage"; 78 homepage = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner"; 79 license = lib.licenses.gpl3Only; 80 maintainers = [ ]; 81 }; 82}