nixpkgs/pkgs/development/python-modules/aubio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
781 B
Nix
Raw Normal View History

2020-10-17 20:47:05 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
, stdenv
, darwin
2020-10-17 20:47:05 +00:00
}:
buildPythonPackage rec {
pname = "aubio";
version = "0.4.9";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0fhxikvlr010nbh02g455d5y8bq6j5yw180cdh4gsd0hb43y3z26";
};
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]);
2020-10-17 20:47:05 +00:00
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
2020-10-17 20:47:05 +00:00
pytestCheckHook
];
pythonImportsCheck = [ "aubio" ];
meta = with lib; {
description = "a library for audio and music analysis";
homepage = "https://aubio.org";
2020-10-17 22:46:21 +00:00
license = licenses.gpl3;
2020-10-17 20:47:05 +00:00
maintainers = with maintainers; [ hexa ];
};
}