mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
40 lines
1012 B
Nix
40 lines
1012 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, requests, iso8601, bottle, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "m3u8";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "globocom";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-EfHhmV2otEgEy2OVohS+DF7dk97GFdWZ4cFCERZBmlA=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix hardcoded /tmp dir (fix build on Hydra)
|
|
(fetchpatch {
|
|
url = "https://github.com/globocom/m3u8/commit/cf7ae5fda4681efcea796cd7c51c02f152c36009.patch";
|
|
sha256 = "sha256-SEETpIJQddid8D//6DVrSGs/BqDeMOzufE0bBrm+/xY=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [ requests iso8601 ];
|
|
|
|
nativeCheckInputs = [ bottle pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [
|
|
"tests/test_parser.py"
|
|
"tests/test_model.py"
|
|
"tests/test_variant_m3u8.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/globocom/m3u8";
|
|
description = "Python m3u8 parser";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|
|
|