pythonPackages.python-otr: refactor move to python-modules
This commit is contained in:
parent
3df4461e21
commit
28542253fa
33
pkgs/development/python-modules/python-otr/default.nix
Normal file
33
pkgs/development/python-modules/python-otr/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, zope_interface
|
||||
, cryptography
|
||||
, application
|
||||
, gmpy2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-otr";
|
||||
version = "1.2.0";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "AGProjects";
|
||||
repo = pname;
|
||||
rev = "release-${version}";
|
||||
sha256 = "0p3b1n8jlxwd65gbk2k5007fkhdyjwcvr4982s42hncivxvabzzy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zope_interface cryptography application gmpy2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A pure python implementation of OTR";
|
||||
homepage = https://github.com/AGProjects/otr;
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ edwtjo ];
|
||||
};
|
||||
|
||||
}
|
@ -3000,30 +3000,7 @@ in {
|
||||
|
||||
orderedset = callPackage ../development/python-modules/orderedset { };
|
||||
|
||||
python-otr = buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "python-otr";
|
||||
version = "1.2.0";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "AGProjects";
|
||||
repo = pname;
|
||||
rev = "release-" + version;
|
||||
sha256 = "0p3b1n8jlxwd65gbk2k5007fkhdyjwcvr4982s42hncivxvabzzy";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ zope_interface cryptography application gmpy2 ];
|
||||
|
||||
meta = {
|
||||
description = "A pure python implementation of OTR";
|
||||
homepage = https://github.com/AGProjects/otr;
|
||||
license = licenses.lgpl21Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ edwtjo ];
|
||||
};
|
||||
};
|
||||
python-otr = callPackage ../development/python-modules/python-otr { };
|
||||
|
||||
plone-testing = callPackage ../development/python-modules/plone-testing { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user