From e0d6142ed8024ac45d4e93cce392d00e2c3e9079 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 13:27:31 -0400 Subject: [PATCH] pythonPackages.evernote: refactor move to python-modules --- .../python-modules/evernote/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------- 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/evernote/default.nix diff --git a/pkgs/development/python-modules/evernote/default.nix b/pkgs/development/python-modules/evernote/default.nix new file mode 100644 index 000000000000..717ab77018e2 --- /dev/null +++ b/pkgs/development/python-modules/evernote/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy27 +, oauth2 +}: + +buildPythonPackage rec { + pname = "evernote"; + version = "1.25.0"; + disabled = ! isPy27; #some dependencies do not work with py3 + + src = fetchPypi { + inherit pname version; + sha256 = "1lwlg6fpi3530245jzham1400a5b855bm4sbdyck229h9kg1v02d"; + }; + + propagatedBuildInputs = [ oauth2 ]; + + meta = with stdenv.lib; { + description = "Evernote SDK for Python"; + homepage = http://dev.evernote.com; + license = licenses.asl20; + maintainers = with maintainers; [ hbunke ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2aa88a3c30ce..346da83808fe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4423,25 +4423,7 @@ in { markdown2 = callPackage ../development/python-modules/markdown2 { }; - evernote = buildPythonPackage rec { - name = "evernote-${version}"; - version = "1.25.0"; - disabled = ! isPy27; #some dependencies do not work with py3 - - src = pkgs.fetchurl { - url = "mirror://pypi/e/evernote/${name}.tar.gz"; - sha256 = "1lwlg6fpi3530245jzham1400a5b855bm4sbdyck229h9kg1v02d"; - }; - - propagatedBuildInputs = with self; [ oauth2 ]; - - meta = { - description = "Evernote SDK for Python"; - homepage = http://dev.evernote.com; - license = licenses.asl20; - maintainers = with maintainers; [ hbunke ]; - }; - }; + evernote = callPackage ../development/python-modules/evernote { }; setproctitle = buildPythonPackage rec { name = "python-setproctitle-${version}";