diff --git a/pkgs/development/python-modules/pylast/default.nix b/pkgs/development/python-modules/pylast/default.nix new file mode 100644 index 000000000000..aa0d1d5f575d --- /dev/null +++ b/pkgs/development/python-modules/pylast/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, certifi, six }: + +buildPythonPackage rec { + pname = "pylast"; + version = "1.8.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "85f8dd96aef0ccba5f80379c3d7bc1fabd72f59aebab040daf40a8b72268f9bd"; + }; + + propagatedBuildInputs = [ certifi six ]; + + # tests require last.fm credentials + doCheck = false; + + meta = with stdenv.lib; { + homepage = "https://github.com/pylast/pylast"; + description = "A python interface to last.fm (and compatibles)"; + license = licenses.asl20; + maintainers = with maintainers; [ rvolosatovs ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e17a99a059a6..906f9b6b3919 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12926,24 +12926,7 @@ in { kitchen = callPackage ../development/python-modules/kitchen/default.nix { }; - pylast = buildPythonPackage rec { - name = "pylast-${version}"; - version = "0.5.11"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pylast/${name}.tar.gz"; - sha256 = "bf35820be35447d55564d36072d40b09ac8a7fd41a6f1a7a9d408f4d0eaefac4"; - }; - - # error: invalid command 'test' - doCheck = false; - - meta = { - homepage = http://code.google.com/p/pylast/; - description = "A python interface to last.fm (and compatibles)"; - license = licenses.asl20; - }; - }; + pylast = callPackage ../development/python-modules/pylast/default.nix { }; pylru = buildPythonPackage rec { name = "pylru-${version}";