depot/third_party/nixpkgs/pkgs/development/tools/fedpkg/default.nix
Default email 48af15f7a5 Project import generated by Copybara.
GitOrigin-RevId: 04a2b269d8921505a2969fc9ec25c1f517f2b307
2021-03-20 04:20:00 +00:00

38 lines
1 KiB
Nix

{ lib, python2Packages, fetchurl }:
with python2Packages;
let
fedora_cert = buildPythonPackage rec {
name = "fedora-cert";
version = "0.6.0.2";
format = "other";
src = fetchurl {
url = "https://releases.pagure.org/fedora-packager/fedora-packager-${version}.tar.bz2";
sha256 = "02f22072wx1zg3rhyfw6gbxryzcbh66s92nb98mb9kdhxixv6p0z";
};
propagatedBuildInputs = [ python_fedora pyopenssl ];
doCheck = false;
};
in buildPythonApplication rec {
pname = "fedpkg";
version = "1.29";
disabled = isPy3k;
src = fetchurl {
url = "https://releases.pagure.org/fedpkg/${pname}-${version}.tar.bz2";
sha256 = "1cpy5p1rp7w52ighz3ynvhyw04z86y8phq3n8563lj6ayr8pw631";
};
patches = [ ./fix-paths.patch ];
propagatedBuildInputs = [ rpkg offtrac urlgrabber fedora_cert ];
meta = with lib; {
description = "Subclass of the rpkg project for dealing with rpm packaging";
homepage = "https://pagure.io/fedpkg";
license = licenses.gpl2;
maintainers = with maintainers; [ ];
broken = true;
};
}