Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 58 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, babel, buildPythonPackage, fetchPypi, langcodes, pytestCheckHook, pythonOlder, setuptools, tld, urllib3,}:
buildPythonPackage rec { pname = "courlan"; version = "1.3.2"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { inherit pname version; hash = "sha256-C2b02zqcOabiLdJHxyz6pX1o6mYOlLsshOx9uHEq8ZA="; };
# Tests try to write to /tmp directly. use $TMPDIR instead. postPatch = '' substituteInPlace tests/unit_tests.py \ --replace-fail "\"courlan --help\"" "\"$out/bin/courlan --help\"" \ --replace-fail "courlan_bin = \"courlan\"" "courlan_bin = \"$out/bin/courlan\"" \ --replace-fail "/tmp" "$TMPDIR" '';
build-system = [ setuptools ];
dependencies = [ babel langcodes tld urllib3 ];
nativeCheckInputs = [ pytestCheckHook ];
# disable tests that require an internet connection disabledTests = [ "test_urlcheck" ];
pythonImportsCheck = [ "courlan" ];
meta = with lib; { description = "Clean, filter and sample URLs to optimize data collection"; homepage = "https://github.com/adbar/courlan"; changelog = "https://github.com/adbar/courlan/blob/v${version}/HISTORY.md"; license = licenses.asl20; maintainers = with maintainers; [ jokatzke ]; mainProgram = "courlan"; };}