Skip to content
Snippets Groups Projects
Commit d52bc170 authored by Tom Prince's avatar Tom Prince
Browse files

Use tahoe-pin.

parent 0c409cce
Branches
No related tags found
1 merge request!239Switch to using mach-nix for python packaging.
......@@ -4,11 +4,12 @@ in
{ pkgs ? import sources.release2015 {}
, pypiData ? sources.pypi-deps-db
, mach-nix ? import sources.mach-nix { inherit pkgs pypiData; }
, tahoe-lafs-repo ? sources.tahoe-lafs
}:
let
providers = {
_default = "sdist,nixpkgs,wheel";
tahoe-lafs = "nixpkgs,sdist";
tahoe-lafs = "nixpkgs";
# not packaged in nixpkgs at all, we can use the binary wheel from
# pypi though.
python-challenge-bypass-ristretto = "wheel";
......@@ -44,12 +45,7 @@ in
__version__ = verstr
EOF
'';
src = pkgs.fetchFromGitHub {
owner = "fenn-cs";
repo = "tahoe-lafs";
rev = "f6a96ae3976ee21ad0376f7b6a22fc3d12110dce";
sha256 = "ZN2V5vH+VqPaBmQXXqyH+vUiqW1YNhz+7LsiNNhA/4g=";
};
src = tahoe-lafs-repo;
};
in
mach-nix.buildPythonApplication rec {
......
......@@ -40,5 +40,17 @@
"type": "tarball",
"url": "https://releases.nixos.org/nixos/21.05/nixos-21.05.3740.ce7a1190a0f/nixexprs.tar.xz",
"url_template": "https://releases.nixos.org/nixos/21.05/nixos-21.05.3740.ce7a1190a0f/nixexprs.tar.xz"
},
"tahoe-lafs": {
"branch": "master",
"description": "The Tahoe-LAFS decentralized secure filesystem.",
"homepage": "https://tahoe-lafs.org/",
"owner": "tahoe-lafs",
"repo": "tahoe-lafs",
"rev": "be5f5839b3484c278a051f375d18952e23940677",
"sha256": "1f6g1ikglz6rj8wada1kzi2ybyvrpr5a6gdi2mjvvczxhpixa96s",
"type": "tarball",
"url": "https://github.com/tahoe-lafs/tahoe-lafs/archive/be5f5839b3484c278a051f375d18952e23940677.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
......@@ -3,5 +3,5 @@ zope.interface
eliot
aniso8601
python-challenge-bypass-ristretto
https://github.com/fenn-cs/tahoe-lafs/archive/f6a96ae3976ee21ad0376f7b6a22fc3d12110dce.tar.gz
https://github.com/tahoe-lafs/tahoe-lafs/archive/be5f5839b3484c278a051f375d18952e23940677.tar.gz
treq
......@@ -45,6 +45,8 @@ chardet==4.0.0
# via requests
click==7.1.2
# via magic-wormhole
collections-extended==1.0.3
# via tahoe-lafs
configparser==4.0.2
# via tahoe-lafs
constantly==15.1.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment