1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/python-modules/pyobjc/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

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/;
};
}