mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
1be626afba
Some tests rely on networking, breaking sandboxed builds. Remove them.
Fixes: b8e0a873c1
("python36Packages.musicbrainzngs: 0.5 -> 0.6")
33 lines
672 B
Nix
33 lines
672 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "musicbrainzngs";
|
|
version = "0.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1dddarpjawryll2wss65xq3v9q8ln8dan7984l5dxzqx88d2dvr8";
|
|
};
|
|
|
|
buildInputs = [ pkgs.glibcLocales ];
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
preCheck = ''
|
|
# Remove tests that rely on networking (breaks sandboxed builds)
|
|
rm test/test_submit.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://alastair/python-musicbrainz-ngs;
|
|
description = "Python bindings for musicbrainz NGS webservice";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
|
|
}
|