nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09-beta 46 lines 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, attrs 3, audio-metadata 4, importlib-metadata 5, marshmallow 6, pendulum 7, protobuf 8}: 9 10buildPythonPackage rec { 11 pname = "google-music-proto"; 12 version = "2.10.0"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "91b78c0de4f59b1e5503fd6d49cb3fec029d9199cca0794c87667e643342e987"; 18 }; 19 20 postPatch = '' 21 sed -i -e "/audio-metadata/c\'audio-metadata'," -e "/marshmallow/c\'marshmallow'," setup.py 22 substituteInPlace setup.py \ 23 --replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum>=2.0,<=3.0" 24 ''; 25 26 propagatedBuildInputs = [ 27 attrs 28 audio-metadata 29 marshmallow 30 pendulum 31 protobuf 32 ] ++ lib.optionals (pythonOlder "3.8") [ 33 importlib-metadata 34 ]; 35 36 # No tests 37 doCheck = false; 38 pythonImportsCheck = [ "google_music_proto" ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/thebigmunch/google-music-proto"; 42 description = "Sans-I/O wrapper of Google Music API calls"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ jakewaksbaum ]; 45 }; 46}