python311Packages.courlan: 0.9.5 -> 1.0.0
Diff: https://github.com/adbar/courlan/compare/refs/tags/v0.9.5...v1.0.0 Changelog: https://github.com/adbar/courlan/blob/v1.0.0/HISTORY.md
This commit is contained in:
parent
f8b16528fb
commit
db9aa51517
1 changed files with 6 additions and 5 deletions
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "courlan";
|
pname = "courlan";
|
||||||
version = "0.9.5";
|
version = "1.0.0";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-ONw1suO/H11RbQDVGsEuveVD40F8a+b2oic8D8W1s1M=";
|
hash = "sha256-PDVRHDZSXLL5Qc1nCbejp0LtlfC55WyX7sDBb9wDUYM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -35,11 +35,12 @@ buildPythonPackage rec {
|
||||||
"test_urlcheck"
|
"test_urlcheck"
|
||||||
];
|
];
|
||||||
|
|
||||||
# nixify path to the courlan binary in the test suite
|
# tests try to write to /tmp directly. use $TMPDIR instead.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace tests/unit_tests.py \
|
substituteInPlace tests/unit_tests.py \
|
||||||
--replace "\"courlan --help\"" "\"$out/bin/courlan --help\"" \
|
--replace "\"courlan --help\"" "\"$out/bin/courlan --help\"" \
|
||||||
--replace "courlan_bin = \"courlan\"" "courlan_bin = \"$out/bin/courlan\""
|
--replace "courlan_bin = \"courlan\"" "courlan_bin = \"$out/bin/courlan\"" \
|
||||||
|
--replace "/tmp" "$TMPDIR"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "courlan" ];
|
pythonImportsCheck = [ "courlan" ];
|
||||||
|
@ -48,7 +49,7 @@ buildPythonPackage rec {
|
||||||
description = "Clean, filter and sample URLs to optimize data collection";
|
description = "Clean, filter and sample URLs to optimize data collection";
|
||||||
homepage = "https://github.com/adbar/courlan";
|
homepage = "https://github.com/adbar/courlan";
|
||||||
changelog = "https://github.com/adbar/courlan/blob/v${version}/HISTORY.md";
|
changelog = "https://github.com/adbar/courlan/blob/v${version}/HISTORY.md";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ jokatzke ];
|
maintainers = with maintainers; [ jokatzke ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue