1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pkgs,
6}:
7
8buildPythonPackage rec {
9 pname = "musicbrainzngs";
10 version = "0.7.1";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "09z6k07pxncfgfc8clfmmxl2xqbd7h8x8bjzwr95hc0bzl00275b";
16 };
17
18 buildInputs = [ pkgs.glibcLocales ];
19
20 LC_ALL = "en_US.UTF-8";
21
22 preCheck = ''
23 # Remove tests that rely on networking (breaks sandboxed builds)
24 rm test/test_submit.py
25 '';
26
27 meta = with lib; {
28 homepage = "https://python-musicbrainzngs.readthedocs.org/";
29 description = "Python bindings for musicbrainz NGS webservice";
30 license = licenses.bsd2;
31 maintainers = with maintainers; [ ];
32 };
33}