14 buildPythonPackage rec {
19 disabled = pythonOlder "3.8";
22 inherit pname version;
23 hash = "sha256-OGjziBIvKwnRVIAgQ/6S39YsPqenAOquirwFGYz4vCU=";
26 # Tests try to write to /tmp directly. use $TMPDIR instead.
28 substituteInPlace tests/unit_tests.py \
29 --replace-fail "\"courlan --help\"" "\"$out/bin/courlan --help\"" \
30 --replace-fail "courlan_bin = \"courlan\"" "courlan_bin = \"$out/bin/courlan\"" \
31 --replace-fail "/tmp" "$TMPDIR"
34 build-system = [ setuptools ];
43 nativeCheckInputs = [ pytestCheckHook ];
45 # disable tests that require an internet connection
46 disabledTests = [ "test_urlcheck" ];
48 pythonImportsCheck = [ "courlan" ];
51 description = "Clean, filter and sample URLs to optimize data collection";
52 homepage = "https://github.com/adbar/courlan";
53 changelog = "https://github.com/adbar/courlan/blob/v${version}/HISTORY.md";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ jokatzke ];
56 mainProgram = "courlan";