pythonPackages.pynzb: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:07:22 -04:00 committed by Frederik Rietdijk
parent bc9a1cda53
commit 5dfe02a10b
2 changed files with 31 additions and 21 deletions

View File

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, python
}:
buildPythonPackage rec {
pname = "pynzb";
version = "0.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "0735b3889a1174bbb65418ee503629d3f5e4a63f04b16f46ffba18253ec3ef17";
};
checkPhase = ''
${python.interpreter} -m unittest -s pynzb -t .
'';
# Can't get them working
doCheck = false;
meta = with stdenv.lib; {
homepage = https://github.com/ericflo/pynzb;
description = "Unified API for parsing NZB files";
license = licenses.bsd3;
maintainers = with maintainers; [ domenkozar ];
};
}

View File

@ -3429,27 +3429,7 @@ in {
pynmea2 = callPackage ../development/python-modules/pynmea2 {};
pynzb = buildPythonPackage (rec {
name = "pynzb-0.1.0";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pynzb/${name}.tar.gz";
sha256 = "0735b3889a1174bbb65418ee503629d3f5e4a63f04b16f46ffba18253ec3ef17";
};
# Can't get them working
doCheck = false;
checkPhase = ''
${python.interpreter} -m unittest -s pynzb -t .
'';
meta = {
homepage = https://github.com/ericflo/pynzb;
description = "Unified API for parsing NZB files";
license = licenses.bsd3;
maintainers = with maintainers; [ domenkozar ];
};
});
pynzb = callPackage ../development/python-modules/pynzb { };
process-tests = buildPythonPackage rec {
pname = "process-tests";