diff options
author | Scriptkiddi <fritz@otlinghaus.it> | 2019-11-25 09:18:52 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-01-09 12:11:49 -0800 |
commit | cef835d40eda2e942cde1783677a2e7cb4407df1 (patch) | |
tree | 75088848ed774feaea3e85d549dd4fed06febbf5 /pkgs/development/python-modules/m3u8 | |
parent | 0726ab30f678988e8059c59734ee9c61e5980e1c (diff) | |
download | nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.tar nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.tar.gz nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.tar.bz2 nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.tar.lz nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.tar.xz nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.tar.zst nixpkgs-cef835d40eda2e942cde1783677a2e7cb4407df1.zip |
pythonPackages.m3u8: init at 0.5.2
Diffstat (limited to 'pkgs/development/python-modules/m3u8')
-rw-r--r-- | pkgs/development/python-modules/m3u8/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/m3u8/default.nix b/pkgs/development/python-modules/m3u8/default.nix new file mode 100644 index 00000000000..e558b893dfd --- /dev/null +++ b/pkgs/development/python-modules/m3u8/default.nix @@ -0,0 +1,29 @@ +{ lib, buildPythonPackage, python, fetchFromGitHub, requests, iso8601, bottle, pytest, pytestcov }: + +buildPythonPackage rec { + pname = "m3u8"; + version = "0.5.2"; + + src = fetchFromGitHub { + owner = "globocom"; + repo = pname; + rev = version; + sha256 = "0p6wmwv1nfa5pyakq5d55w9v142z5ja3db3s3qr44kx895d9lhng"; + }; + + checkInputs = [ bottle pytest pytestcov ]; + + checkPhase = '' + pytest tests/test_{parser,model,variant_m3u8}.py + ''; + + propagatedBuildInputs = [ requests iso8601 ]; + + meta = with lib; { + homepage = "https://github.com/globocom/m3u8"; + description = "Python m3u8 parser"; + license = licenses.mit; + maintainers = with maintainers; [ Scriptkiddi ]; + }; +} + |