python.pkgs.pyobjc: init at 4.0b1

This commit is contained in:
Sauyon Lee 2017-09-17 09:00:23 +01:00 committed by Robert Helgesson
parent 9e2f54a30c
commit a5f5bee85f
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ stdenv, fetchPypi, isPy3k, buildPythonPackage }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pyobjc";
version = "4.0b1";
# Gives "No matching distribution found for
# pyobjc-framework-Collaboration==4.0b1 (from pyobjc==4.0b1)"
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "16bng6960c1m57nnh1l09ycnyimrqzw9mx9pnyjxn5zzm5kalr37";
};
meta = {
description = "A bridge between the Python and Objective-C programming languages";
license = stdenv.lib.licenses.mit;
maintainers = with stdenv.lib.maintainers; [ sauyon ];
homepage = https://pythonhosted.org/pyobjc/;
};
}

View File

@ -16579,6 +16579,10 @@ in {
};
};
pyobjc = if stdenv.isDarwin
then callPackage ../development/python-modules/pyobjc {}
else throw "pyobjc can only be built on Mac OS";
pyodbc = callPackage ../development/python-modules/pyodbc { };
pyocr = callPackage ../development/python-modules/pyocr { };