forked from mirrors/nixpkgs
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
23 lines
637 B
Nix
23 lines
637 B
Nix
{ stdenv, fetchPypi, isPy3k, buildPythonPackage }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyobjc";
|
|
version = "4.2.2";
|
|
|
|
# Gives "No matching distribution found for
|
|
# pyobjc-framework-Collaboration==4.0b1 (from pyobjc==4.0b1)"
|
|
disabled = isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "24be63e394e8e66c1131e2b8e67e44f6c28ceb4329af01e9c10824044be8adbc";
|
|
};
|
|
|
|
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/;
|
|
};
|
|
}
|