xopen: Initial packaging

This commit is contained in:
Tyson Whitehead
2019-06-25 11:53:47 -04:00
parent 4d3da4bd51
commit db14501e23
2 changed files with 25 additions and 0 deletions

View File

@@ -5,4 +5,6 @@ pkgs: self: super: with self; {
openslide = callPackage ./openslide/python.nix { openslide = pkgs.openslide; };
pybedtools = callPackage ./pybedtools.nix { };
xopen = callPackage ./xopen.nix { };
}

23
pkgs/xopen.nix Normal file
View File

@@ -0,0 +1,23 @@
{ lib, fetchPypi, buildPythonPackage
, setuptools_scm
, bz2file, pytest }:
buildPythonPackage rec {
version = "0.7.1";
pname = "xopen";
src = fetchPypi {
inherit pname version;
sha256 = "1i68nf73abzd19x4ccrk2nxfblqfzz0zzm6vh0l3qzin0np1d89r";
};
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ bz2file ];
checkInputs = [ pytest ];
meta = with lib; {
homepage = "hhttps://github.com/marcelm/xopen";
description = "Python module provides an xopen function that works like the built-in open function, but can also deal with compressed files (gzip, bzip2, and xz).";
license = licenses.mit;
};
}