Merge pull request #144042 from SuperSandro2000/cleanup
This commit is contained in:
commit
c96f85e901
@ -2,29 +2,32 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, stdenv
|
, stdenv
|
||||||
, darwin
|
, AudioToolbox
|
||||||
|
, AudioUnit
|
||||||
|
, CoreServices
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "audiotools";
|
pname = "audiotools";
|
||||||
version = "3.1.1";
|
version = "3.1.1";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
AudioToolbox
|
AudioToolbox
|
||||||
AudioUnit
|
AudioUnit
|
||||||
CoreServices
|
CoreServices
|
||||||
]);
|
];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "tuffy";
|
owner = "tuffy";
|
||||||
repo = "python-audio-tools";
|
repo = "python-audio-tools";
|
||||||
rev = "v3.1.1";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-y+EiK9BktyTWowOiJvOb2YjtbPa7R62Wb5zinkyt1OM=";
|
sha256 = "sha256-y+EiK9BktyTWowOiJvOb2YjtbPa7R62Wb5zinkyt1OM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Utilities and Python modules for handling audio";
|
description = "Utilities and Python modules for handling audio";
|
||||||
homepage = "http://audiotools.sourceforge.net/";
|
homepage = "http://audiotools.sourceforge.net/";
|
||||||
license = lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6,14 +6,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.5.2";
|
|
||||||
pname = "livestreamer-curses";
|
pname = "livestreamer-curses";
|
||||||
|
version = "1.5.2";
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gapato";
|
owner = "gapato";
|
||||||
repo = "livestreamer-curses";
|
repo = "livestreamer-curses";
|
||||||
rev = "v1.5.2";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-Pi0PIOUhMMAWft9ackB04IgF6DyPrXppNqyVjozIjN4=";
|
sha256 = "sha256-Pi0PIOUhMMAWft9ackB04IgF6DyPrXppNqyVjozIjN4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -23,6 +23,6 @@ buildPythonPackage rec {
|
|||||||
homepage = "https://github.com/gapato/livestreamer-curses";
|
homepage = "https://github.com/gapato/livestreamer-curses";
|
||||||
description = "Curses frontend for livestreamer";
|
description = "Curses frontend for livestreamer";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,42 +1,37 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pkgs
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPyPy
|
, isPyPy
|
||||||
|
, makeWrapper
|
||||||
|
, rtmpdump
|
||||||
, pycrypto
|
, pycrypto
|
||||||
, requests
|
, requests
|
||||||
, singledispatch ? null
|
|
||||||
, futures ? null
|
|
||||||
, isPy27
|
, isPy27
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.12.2";
|
|
||||||
pname = "livestreamer";
|
pname = "livestreamer";
|
||||||
|
version = "1.12.2";
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chrippa";
|
owner = "chrippa";
|
||||||
repo = "livestreamer";
|
repo = "livestreamer";
|
||||||
rev = "v1.12.2";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0=";
|
sha256 = "sha256-PqqyBh+oMmu7Ynly3fqx/+6mQYX+6SpI0Okj2O+YLz0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pkgs.rtmpdump pycrypto requests ]
|
propagatedBuildInputs = [ rtmpdump pycrypto requests ];
|
||||||
++ lib.optionals isPy27 [ singledispatch futures ];
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/livestreamer --prefix PATH : ${pkgs.rtmpdump}/bin
|
wrapProgram $out/bin/livestreamer --prefix PATH : ${lib.makeBinPath [ rtmpdump ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://livestreamer.tanuki.se";
|
homepage = "http://livestreamer.tanuki.se";
|
||||||
description = ''
|
description = "Livestreamer is CLI program that extracts streams from various services and pipes them into a video player of choice";
|
||||||
Livestreamer is CLI program that extracts streams from various
|
|
||||||
services and pipes them into a video player of choice.
|
|
||||||
'';
|
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytest, mock }:
|
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, mock }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pep257";
|
pname = "pep257";
|
||||||
version = "0.7.0";
|
version = "0.7.0";
|
||||||
@ -6,20 +7,17 @@ buildPythonPackage rec {
|
|||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "GreenSteam";
|
owner = "GreenSteam";
|
||||||
repo = "pep257";
|
repo = "pep257";
|
||||||
rev = "0.7.0";
|
rev = version;
|
||||||
sha256 = "sha256-RkE9kkNkRTmZ8zJVwQzMsxU1hcjlxX6UA+ehnareynQ=";
|
sha256 = "sha256-RkE9kkNkRTmZ8zJVwQzMsxU1hcjlxX6UA+ehnareynQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
checkInputs = [ pytestCheckHook mock ];
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/GreenSteam/pep257/";
|
homepage = "https://github.com/GreenSteam/pep257/";
|
||||||
description = "Python docstring style checker";
|
description = "Python docstring style checker";
|
||||||
longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
|
longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -695,7 +695,9 @@ in {
|
|||||||
|
|
||||||
audioread = callPackage ../development/python-modules/audioread { };
|
audioread = callPackage ../development/python-modules/audioread { };
|
||||||
|
|
||||||
audiotools = callPackage ../development/python-modules/audiotools { };
|
audiotools = callPackage ../development/python-modules/audiotools {
|
||||||
|
inherit (pkgs.darwin.apple_sdk.frameworks) AudioToolbox AudioUnit CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
augeas = callPackage ../development/python-modules/augeas {
|
augeas = callPackage ../development/python-modules/augeas {
|
||||||
inherit (pkgs) augeas;
|
inherit (pkgs) augeas;
|
||||||
|
Loading…
Reference in New Issue
Block a user