diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-08-04 13:33:32 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-08-04 13:33:32 +0200 |
commit | d296a379bad2612d9a8ed688f404c7b192586022 (patch) | |
tree | d94d38d39bbe48fe9c89234cb72ff513dfd74848 /pkgs | |
parent | e002b543afd3bf770621423b91720fa50b8d5ec5 (diff) | |
download | nixlib-d296a379bad2612d9a8ed688f404c7b192586022.tar nixlib-d296a379bad2612d9a8ed688f404c7b192586022.tar.gz nixlib-d296a379bad2612d9a8ed688f404c7b192586022.tar.bz2 nixlib-d296a379bad2612d9a8ed688f404c7b192586022.tar.lz nixlib-d296a379bad2612d9a8ed688f404c7b192586022.tar.xz nixlib-d296a379bad2612d9a8ed688f404c7b192586022.tar.zst nixlib-d296a379bad2612d9a8ed688f404c7b192586022.zip |
python.pkgs.beaker: move expression
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/beaker/default.nix | 43 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 32 |
2 files changed, 44 insertions, 31 deletions
diff --git a/pkgs/development/python-modules/beaker/default.nix b/pkgs/development/python-modules/beaker/default.nix new file mode 100644 index 000000000000..7a17fd0f1d0a --- /dev/null +++ b/pkgs/development/python-modules/beaker/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, nose +, mock +, webtest +, sqlalchemy +, pycrypto +, isPy27 +, funcsigs +, pycryptopp +}: + +buildPythonPackage rec { + pname = "Beaker"; + version = "1.8.0"; + + # The pypy release do not contains the tests + src = fetchFromGitHub { + owner = "bbangert"; + repo = "beaker"; + rev = "${version}"; + sha256 = "17yfr7a307n8rdl09was4j60xqk2s0hk0hywdkigrpj4qnw0is7g"; + }; + + buildInputs = + [ nose + mock + webtest + ]; + propagatedBuildInputs = [ + sqlalchemy + pycrypto + ] ++ lib.optionals (isPy27) [ + funcsigs + pycryptopp + ]; + + meta = { + description = "A Session and Caching library with WSGI Middleware"; + maintainers = with lib.maintainers; [ garbas domenkozar ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b0ae8a1e41aa..e68c11028ef8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -937,37 +937,7 @@ in { beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { }; - beaker = buildPythonPackage rec { - name = "Beaker-${version}"; - version = "1.8.0"; - - # The pypy release do not contains the tests - src = pkgs.fetchFromGitHub { - owner = "bbangert"; - repo = "beaker"; - rev = "${version}"; - sha256 = "17yfr7a307n8rdl09was4j60xqk2s0hk0hywdkigrpj4qnw0is7g"; - }; - - buildInputs = - [ self.nose - self.mock - self.webtest - ]; - propagatedBuildInputs = [ - self.sqlalchemy - self.pycrypto - ] ++ optionals (isPy27) [ - self.funcsigs - self.pycryptopp - ]; - - meta = { - description = "A Session and Caching library with WSGI Middleware"; - maintainers = with maintainers; [ garbas domenkozar ]; - platforms = platforms.all; - }; - }; + beaker = callPackage ../development/python-modules/beaker { }; betamax = callPackage ../development/python-modules/betamax {}; |