Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbucket support #139

Open
doronbehar opened this issue Jun 3, 2023 · 1 comment
Open

bitbucket support #139

doronbehar opened this issue Jun 3, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@doronbehar
Copy link

This fails:

$ nix-init --url=https://bitbucket.org/dtrypogeorgos/pylion pkgs/development/python-modules/pylion/default.nix

Enter tag or revision
❯ unstable
Enter version
❯ unstable
Enter pname
❯ pylion
Error: command exited with exit status: 1
stdout:

stderr:
$ nix-prefetch-url --unpack https://bitbucket.org/dtrypogeorgos/pylion/get/unstable.tar.gz
error: unable to download 'https://bitbucket.org/dtrypogeorgos/pylion/get/unstable.tar.gz': HTTP error 404

       response body:

       Cannot resolve the cset
Error: command exited with exit status: 1
@figsoda figsoda added the enhancement New feature or request label Jun 4, 2023
@figsoda
Copy link
Member

figsoda commented Jun 4, 2023

The most basic stuff works if you manually put in the revision and version

Enter output path (defaults to current directory)
❯ .
Enter url
❯ https://bitbucket.org/dtrypogeorgos/pylion
Enter tag or revision
❯ 8945a7b6f1912ae6b9c705f8a2bd521101f5ba59
Enter version
❯ unstable-2021-11-12
Enter pname
❯ pylion
How should this package be built?
❯ buildPythonApplication - setuptools

though you don't get dependency inference since nix-init doesn't parse setup.py, and some meta is missing since nix-init doesn't support bitbucket yet

{ lib
, python3
, fetchFromBitbucket
}:

python3.pkgs.buildPythonApplication rec {
  pname = "pylion";
  version = "unstable-2021-11-12";
  format = "setuptools";

  src = fetchFromBitbucket {
    owner = "dtrypogeorgos";
    repo = "pylion";
    rev = "8945a7b6f1912ae6b9c705f8a2bd521101f5ba59";
    hash = "sha256-4AdJkoQ1hAssDUpgmARGmN+ihQqRPPOncWJ5ErQyWII=";
  };

  pythonImportsCheck = [ "pylion" ];

  meta = with lib; {
    description = "";
    homepage = "https://bitbucket.org/dtrypogeorgos/pylion";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants