Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0726ab30f678
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cef835d40eda
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 9, 2020

  1. pythonPackages.m3u8: init at 0.5.2

    Scriptkiddi authored and Jon committed Jan 9, 2020
    Copy the full SHA
    cef835d View commit details
Showing with 31 additions and 0 deletions.
  1. +29 −0 pkgs/development/python-modules/m3u8/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
29 changes: 29 additions & 0 deletions pkgs/development/python-modules/m3u8/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3994,6 +3994,8 @@ in {

python_magic = callPackage ../development/python-modules/python-magic { };

m3u8 = callPackage ../development/python-modules/m3u8 { };

magic = callPackage ../development/python-modules/magic { };

m2crypto = callPackage ../development/python-modules/m2crypto { };