Refactor etesync dependencies' definitions

This commit is contained in:
Cyryl Płotnicki 2019-04-23 12:50:14 +01:00
parent ad0b36ad51
commit b09182d7e5

View file

@ -1,10 +1,12 @@
with import <nixpkgs> {}; with import <nixpkgs> {};
let let
pyscrypt = python37.pkgs.buildPythonPackage { pyscrypt = python37.pkgs.buildPythonPackage rec {
name = "pyscrypt-1.6.2"; pname = "pyscrypt";
src = fetchurl { version = "1.6.2";
url = "https://files.pythonhosted.org/packages/c6/56/51603b5714d221b784e4cbc2790b1215b3fb108e4d308a0bd52e4c3ce532/pyscrypt-1.6.2.tar.gz"; src = pythonPackages.fetchPypi {
sha256 = "bafdd195f10f7c7395f0133bad09746a68e0e6b66da202c9bdb6b1eb4abba5e9"; }; inherit pname version;
sha256 = "bafdd195f10f7c7395f0133bad09746a68e0e6b66da202c9bdb6b1eb4abba5e9";
};
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://github.com/ricmoo/pyscrypt"; homepage = "https://github.com/ricmoo/pyscrypt";
@ -12,25 +14,31 @@ let
description = "Pure-Python Implementation of the scrypt password-based key derivation function and scrypt file format library"; description = "Pure-Python Implementation of the scrypt password-based key derivation function and scrypt file format library";
}; };
}; };
orderedmultidict = python37.pkgs.buildPythonPackage {
name = "orderedmultidict-1.0"; orderedmultidict = python37.pkgs.buildPythonPackage rec {
src = pkgs.fetchurl { pname = "orderedmultidict";
url = "https://files.pythonhosted.org/packages/19/67/2e1462785b84f40812e61d349f77063939f8f220345b0dfc26c4e3e07af0/orderedmultidict-1.0.tar.gz"; version = "1.0";
sha256 = "b89895ba6438038d0bdf88020ceff876cf3eae0d5c66a69b526fab31125db2c5"; }; src = pythonPackages.fetchPypi {
doCheck = false; inherit pname version;
sha256 = "b89895ba6438038d0bdf88020ceff876cf3eae0d5c66a69b526fab31125db2c5";
};
checkInputs = [ python37Packages.pycodestyle ];
propagatedBuildInputs = [ python37Packages.six ]; propagatedBuildInputs = [ python37Packages.six ];
meta = with pkgs.stdenv.lib; { meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/gruns/orderedmultidict"; homepage = "https://github.com/gruns/orderedmultidict";
license = "License :: Freely Distributable"; license = licenses.unlicense;
description = "Ordered Multivalue Dictionary - omdict."; description = "Ordered Multivalue Dictionary - omdict.";
}; };
}; };
furl = python37.pkgs.buildPythonPackage {
name = "furl-2.0.0"; furl = python37.pkgs.buildPythonPackage rec {
src = pkgs.fetchurl { pname = "furl";
url = "https://files.pythonhosted.org/packages/93/70/e266a29c3c1c9ec94d7fcb3232e0d77bfa04c281f44a9edeb9946a256d91/furl-2.0.0.tar.gz"; version = "2.0.0";
sha256 = "fdcaedc1fb19a63d7d875b0105b0a5b496dd0989330d454a42bcb401fa5454ec"; }; src = pythonPackages.fetchPypi {
doCheck = false; inherit pname version;
sha256 = "fdcaedc1fb19a63d7d875b0105b0a5b496dd0989330d454a42bcb401fa5454ec";
};
checkInputs = [ python37Packages.flake8 ];
propagatedBuildInputs = [ orderedmultidict python37Packages.six ]; propagatedBuildInputs = [ orderedmultidict python37Packages.six ];
meta = with pkgs.stdenv.lib; { meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/gruns/furl"; homepage = "https://github.com/gruns/furl";
@ -38,6 +46,7 @@ let
description = "URL manipulation made simple."; description = "URL manipulation made simple.";
}; };
}; };
etesync = python37.pkgs.buildPythonPackage rec { etesync = python37.pkgs.buildPythonPackage rec {
pname = "etesync"; pname = "etesync";
version = "0.8.1"; version = "0.8.1";
@ -45,7 +54,7 @@ let
inherit pname version; inherit pname version;
sha256 = "007zsdn0zv0f80wpyf8fzl446wmv7jr8a0pdp4wj1y61b14f4q0p"; sha256 = "007zsdn0zv0f80wpyf8fzl446wmv7jr8a0pdp4wj1y61b14f4q0p";
}; };
doCheck = false; checkInputs = [ python37Packages.pytest ];
meta = with pkgs.stdenv.lib; { meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/etesync/pyetesync"; homepage = "https://github.com/etesync/pyetesync";
license = licenses.lgpl3; license = licenses.lgpl3;
@ -77,13 +86,20 @@ let
]; ];
}; };
Radicale = python37.pkgs.buildPythonPackage rec { radicale = python37.pkgs.buildPythonPackage rec {
name = "Radicale-2.1.11"; pname = "Radicale";
src = pkgs.fetchurl { version = "2.1.11";
url = "https://files.pythonhosted.org/packages/be/50/b5094950d53f11e56eb17932469e0e313275da0c5e633590c939863f3c37/Radicale-2.1.11.tar.gz"; src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db"; sha256 = "02273fcc6ae10e0f74aa12652e24d0001eec8dbf467d54ddb4dfcc2af7d7a5db";
}; };
doCheck = false; doCheck = false;
checkInputs = [
python37Packages.pytestrunner
python37Packages.pytest-isort
python37Packages.pytest-flake8
python37Packages.pytestcov
];
propagatedBuildInputs = [ python37Packages.dateutil python37Packages.vobject ]; propagatedBuildInputs = [ python37Packages.dateutil python37Packages.vobject ];
meta = with pkgs.stdenv.lib; { meta = with pkgs.stdenv.lib; {
homepage = "http://www.radicale.org/"; homepage = "http://www.radicale.org/";
@ -93,21 +109,27 @@ let
}; };
radicale-storage-etesync = python37.pkgs.buildPythonPackage rec { radicale-storage-etesync = python37.pkgs.buildPythonPackage rec {
name = "radicale-storage-etesync-0.7.0"; pname = "radicale_storage_etesync";
src = pkgs.fetchurl { version = "0.7.0";
url = "https://files.pythonhosted.org/packages/55/77/c9f3f9a86e2e31204cb5f0f1fbf24745ac86f8c739618db41e52390c73c2/radicale_storage_etesync-0.7.0.tar.gz"; src = pythonPackages.fetchPypi {
sha256 = "0542fbcbd245b723e78d4e8ff2e211f052408897eb515147a86351a8654208ef"; inherit pname version;
sha256 = "1vq889jshlb3m13m2lgbjy440lph27ig53sfipkj7ds5sb5znhh5";
}; };
doCheck = false; propagatedBuildInputs = [ etesync radicale pyscrypt orderedmultidict furl
propagatedBuildInputs = [ etesync Radicale pyscrypt orderedmultidict furl python37Packages.coverage
python37Packages.coverage python37Packages.pyasn1 python37Packages.appdirs python37Packages.pyasn1
python37Packages.vobject python37Packages.py python37Packages.cffi python37Packages.appdirs
python37Packages.pyparsing python37Packages.requests python37Packages.peewee python37Packages.vobject
python37Packages.py
python37Packages.cffi
python37Packages.pyparsing
python37Packages.requests
python37Packages.peewee
]; ];
meta = with pkgs.stdenv.lib; { meta = with pkgs.stdenv.lib; {
homepage = "https://github.com/etesync/radicale_storage_etesync"; homepage = "https://github.com/etesync/radicale_storage_etesync";
license = "GPL"; license = licenses.gpl3;
description = "An EteSync storage plugin for Radicale"; description = "An EteSync storage plugin for radicale";
}; };
}; };
@ -141,7 +163,7 @@ python37.pkgs.buildPythonPackage rec {
python37Packages.six python37Packages.six
python37Packages.urllib3 python37Packages.urllib3
python37Packages.vobject python37Packages.vobject
Radicale radicale
furl furl
orderedmultidict orderedmultidict
pyscrypt pyscrypt