diff --git a/pkgs/development/python-modules/pdunehd/default.nix b/pkgs/development/python-modules/pdunehd/default.nix new file mode 100644 index 000000000000..63eca0dab825 --- /dev/null +++ b/pkgs/development/python-modules/pdunehd/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, requests +}: + +buildPythonPackage rec { + pname = "pdunehd"; + version = "1.3.2"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "valentinalexeev"; + repo = "pdunehd"; + rev = version; + sha256 = "06p0k82nf89rsakr8d2hdb19dp1wqp9bsf54lwb0qma47iakljjh"; + }; + + propagatedBuildInputs = [ + requests + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ "pdunehd" ]; + + meta = with lib; { + description = "Python wrapper for Dune HD media player API"; + homepage = "https://github.com/valentinalexeev/pdunehd"; + license = licenses.asl20; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ef474667680..2af4e4208511 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5160,6 +5160,8 @@ in { phonenumbers = callPackage ../development/python-modules/phonenumbers { }; + pdunehd = callPackage ../development/python-modules/pdunehd { }; + phonopy = callPackage ../development/python-modules/phonopy { }; phpserialize = callPackage ../development/python-modules/phpserialize { };