This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
43 lines
921 B
Nix
43 lines
921 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
chardet,
|
|
pytestCheckHook,
|
|
fetchpatch2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysrt";
|
|
version = "1.1.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "byroot";
|
|
repo = "pysrt";
|
|
rev = "v${version}";
|
|
sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch2 {
|
|
url = "https://github.com/byroot/pysrt/commit/93f52f6d4f70f4e18dc71deeaae0ec1e9100a50f.patch?full_index=1";
|
|
hash = "sha256-nikMPwj3OHvl6LunAfRk6ZbFUvVgPwF696Dt8R7BY4U=";
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ chardet ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/byroot/pysrt";
|
|
license = licenses.gpl3Only;
|
|
description = "Python library used to edit or create SubRip files";
|
|
mainProgram = "srt";
|
|
};
|
|
}
|