python3Packages.ircstates: init at 0.11.3
This commit is contained in:
@@ -0,0 +1,48 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, pythonOlder
|
||||||
|
, irctokens
|
||||||
|
, pendulum
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "ircstates";
|
||||||
|
version = "0.11.3";
|
||||||
|
disabled = pythonOlder "3.6"; # f-strings
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "jesopo";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1v8r6ma8gzvn5ym3xx9qlb0rc4l67pxr3z8njzk1ffxn1x3mxd3i";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "relax-pendulum-version.patch";
|
||||||
|
url = "https://github.com/jesopo/ircstates/commit/f51f1b689e592020d1c91ccab6c03927aadb9f94.patch";
|
||||||
|
sha256 = "0qbp3b9hlqbbx7b474q1mcgnzzzwcm4g89x26iqgmlgxzmv3y5xp";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
irctokens
|
||||||
|
pendulum
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest test
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "ircstates" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "sans-I/O IRC session state parsing library";
|
||||||
|
license = licenses.mit;
|
||||||
|
homepage = "https://github.com/jesopo/ircstates";
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -2965,6 +2965,8 @@ in {
|
|||||||
|
|
||||||
irc = callPackage ../development/python-modules/irc { };
|
irc = callPackage ../development/python-modules/irc { };
|
||||||
|
|
||||||
|
ircstates = callPackage ../development/python-modules/ircstates { };
|
||||||
|
|
||||||
irctokens = callPackage ../development/python-modules/irctokens { };
|
irctokens = callPackage ../development/python-modules/irctokens { };
|
||||||
|
|
||||||
isbnlib = callPackage ../development/python-modules/isbnlib { };
|
isbnlib = callPackage ../development/python-modules/isbnlib { };
|
||||||
|
|||||||
Reference in New Issue
Block a user