coursera-dl: modernize
This commit is contained in:
parent
12f1f6fe2a
commit
b902650133
@ -1,15 +1,15 @@
|
|||||||
{ lib
|
{
|
||||||
, fetchFromGitHub
|
fetchFromGitHub,
|
||||||
, fetchpatch
|
fetchpatch,
|
||||||
, glibcLocales
|
lib,
|
||||||
, pandoc
|
pandoc,
|
||||||
, python3
|
python3,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "coursera-dl";
|
pname = "coursera-dl";
|
||||||
version = "0.11.5";
|
version = "0.11.5";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "coursera-dl";
|
owner = "coursera-dl";
|
||||||
@ -35,24 +35,13 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
build-system = with python3.pkgs; [ setuptools ];
|
||||||
substituteInPlace requirements.txt \
|
|
||||||
--replace '==' '>='
|
|
||||||
'';
|
|
||||||
|
|
||||||
preConfigure = ''
|
nativeBuildInputs = [ pandoc ];
|
||||||
export LC_ALL=en_US.utf-8
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
pythonRelaxDeps = true;
|
||||||
pandoc
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = with python3.pkgs; [
|
dependencies = with python3.pkgs; [
|
||||||
glibcLocales
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
|
||||||
attrs
|
attrs
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
configargparse
|
configargparse
|
||||||
@ -78,7 +67,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
description = "CLI for downloading Coursera.org videos and naming them";
|
description = "CLI for downloading Coursera.org videos and naming them";
|
||||||
mainProgram = "coursera-dl";
|
mainProgram = "coursera-dl";
|
||||||
homepage = "https://github.com/coursera-dl/coursera-dl";
|
homepage = "https://github.com/coursera-dl/coursera-dl";
|
||||||
changelog = "https://github.com/coursera-dl/coursera-dl/blob/0.11.5/CHANGELOG.md";
|
changelog = "https://github.com/coursera-dl/coursera-dl/blob/${src.rev}/CHANGELOG.md";
|
||||||
license = licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
maintainers = with maintainers; [ alexfmpe ];
|
maintainers = with maintainers; [ alexfmpe ];
|
||||||
platforms = platforms.darwin ++ platforms.linux;
|
platforms = platforms.darwin ++ platforms.linux;
|
||||||
|
Loading…
Reference in New Issue
Block a user