mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
pythonPackages.smugline: refactor move to python-modules
This commit is contained in:
parent
c33c576212
commit
fa7d1d8bfb
2 changed files with 42 additions and 26 deletions
41
pkgs/development/python-modules/smugline/default.nix
Normal file
41
pkgs/development/python-modules/smugline/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, docopt
|
||||
, requests
|
||||
, smugpy
|
||||
, python
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "smugline";
|
||||
version = "20160106";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gingerlime";
|
||||
repo = pname;
|
||||
rev = "134554c574c2d282112ba60165a8c5ffe0f16fd4";
|
||||
sha256 = "00n012ijkdrx8wsl8x3ghdcxcdp29s4kwr3yxvlyj79g5yhfvaj6";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
buildInputs = [ python pkgs.makeWrapper ];
|
||||
propagatedBuildInputs = [ docopt requests smugpy ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/libexec
|
||||
cp smugline.py $out/libexec
|
||||
makeWrapper ${python.interpreter} $out/bin/smugline \
|
||||
--add-flags "$out/libexec/smugline.py" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/gingerlime/smugline;
|
||||
description = "A simple command line tool for smugmug ";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
|
@ -4639,32 +4639,7 @@ in {
|
|||
|
||||
smugpy = callPackage ../development/python-modules/smugpy { };
|
||||
|
||||
smugline = stdenv.mkDerivation rec {
|
||||
name = pname + "-" + version;
|
||||
pname = "smugline";
|
||||
version = "20160106";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "gingerlime";
|
||||
repo = pname;
|
||||
rev = "134554c574c2d282112ba60165a8c5ffe0f16fd4";
|
||||
sha256 = "00n012ijkdrx8wsl8x3ghdcxcdp29s4kwr3yxvlyj79g5yhfvaj6";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
buildInputs = [ python pkgs.makeWrapper ];
|
||||
|
||||
propagatedBuildInputs = with self; [ docopt requests smugpy ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/libexec
|
||||
cp smugline.py $out/libexec
|
||||
makeWrapper ${python.interpreter} $out/bin/smugline \
|
||||
--add-flags "$out/libexec/smugline.py" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH"
|
||||
'';
|
||||
};
|
||||
smugline = callPackage ../development/python-modules/smugline { };
|
||||
|
||||
txaio = callPackage ../development/python-modules/txaio { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue