Skip to content

Commit

Permalink
rekt: 39 -> 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aidalgol committed Nov 20, 2023
1 parent ebc6d24 commit b6afee6
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions plugins/rekt/default.nix
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@
{ lib, buildPythonPackage, fetchFromGitLab, vapoursynthPlugins, vapoursynth }:
{ lib, buildPythonPackage, setuptools, fetchFromGitHub, vapoursynthPlugins, vapoursynth }:

buildPythonPackage rec {
pname = "rekt";
version = "39";
version = "1.0.0";
pyproject = true;

src = fetchFromGitLab {
owner = "Ututu";
src = fetchFromGitHub {
owner = "OpusGang";
repo = pname;
rev = "153863e07779219c48cf1223bfdba86c47bc43be";
sha256 = "1h83dqwn71pfqxx8hppbqc7i9mh0a2pbpydsm8jvf538z9nr2sl9";
rev = version;
sha256 = "sha256-SWu7W0DFoPLeTe4+aYQGUlaU0n63W3IB7Fdi71uqyzw=";
};

# This does not depend on vapoursynth (since this is used from within
# vapoursynth).
postPatch = ''
substituteInPlace setup.py \
--replace "install_requires=['vapoursynth', " "install_requires=["
'';

propagatedBuildInputs = with vapoursynthPlugins; [
vsutil
propagatedBuildInputs = [
setuptools
vapoursynthPlugins.vsutil
];

checkInputs = [ vapoursynth ];
checkPhase = ''
runHook preCheck
# This overrides the default setuptools checkPhase that detects tests (that
# don’t work) even though this package doesn’t have tests.
runHook postCheck
'';
pythonImportsCheck = [ "rekt" ];

meta = with lib; {
description = "VapourSynth wrapper for Cropping and Stacking clips";
homepage = "https://gitlab.com/Ututu/rekt";
license = licenses.unfree; # no license
homepage = "https://github.com/OpusGang/rekt";
license = licenses.mit;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
Expand Down

0 comments on commit b6afee6

Please sign in to comment.