From c0433265bbca6db732aa1e5aec00c16ee7b292b8 Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Thu, 31 Aug 2017 18:21:45 +0700 Subject: [PATCH] pythonPackages.smugpy : move to separate expression --- .../python-modules/smugpy/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/smugpy/default.nix diff --git a/pkgs/development/python-modules/smugpy/default.nix b/pkgs/development/python-modules/smugpy/default.nix new file mode 100644 index 000000000000..5eb8d77a244d --- /dev/null +++ b/pkgs/development/python-modules/smugpy/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub }: + +buildPythonPackage rec { + name = pname + "-" + version; + pname = "smugpy"; + version = "20131218"; + + src = fetchFromGitHub { + owner = "chrishoffman"; + repo = pname; + rev = "f698d6749ce446e3d6c7d925b2cd1cd5b3d695ea"; + sha256 = "029x6hm1744iznv4sw8sfyl974wmx1sqnr1k5dvzzwpk3ja49a1y"; + }; + + meta = with stdenv.lib; { + description = "Python library for the SmugMug API"; + license = with licenses; [ mit ]; + homepage = https://github.com/chrishoffman/smugpy; + }; + + doCheck = false; # Tries to login to Smugmug… +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fa1fff79ce41..df3c33442d51 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -28199,22 +28199,7 @@ EOF buildInputs = with self; [ pkgs.swig1 pkgs.coin3d pkgs.soqt pkgs.mesa pkgs.xorg.libXi ]; }; - smugpy = buildPythonPackage rec { - name = pname + "-" + version; - pname = "smugpy"; - version = "20131218"; - - src = pkgs.fetchFromGitHub { - owner = "chrishoffman"; - repo = pname; - rev = "f698d6749ce446e3d6c7d925b2cd1cd5b3d695ea"; - sha256 = "029x6hm1744iznv4sw8sfyl974wmx1sqnr1k5dvzzwpk3ja49a1y"; - }; - - doCheck = false; # Tries to login to Smugmug… - - propagatedBuildInputs = with self; [ ]; - }; + smugpy = callPackage ../development/python-modules/smugpy { }; smugline = stdenv.mkDerivation rec { name = pname + "-" + version;