summary refs log tree commit diff
path: root/pkgs/applications/misc/cheat
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-09-12 09:37:57 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-09-12 09:38:20 +0100
commit7f2f427e8f861f786987c6eabd053e20f4ee38b4 (patch)
tree1c53f18fee85f152ca97350f1960cd4ce7f0edba /pkgs/applications/misc/cheat
parente9040c5161b0d690b71fbbd6edfd5d3c4cbf9555 (diff)
downloadnixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.tar
nixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.tar.gz
nixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.tar.bz2
nixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.tar.lz
nixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.tar.xz
nixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.tar.zst
nixpkgs-7f2f427e8f861f786987c6eabd053e20f4ee38b4.zip
cheat: 2.2.0 -> 2.2.1
Diffstat (limited to 'pkgs/applications/misc/cheat')
-rw-r--r--pkgs/applications/misc/cheat/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/applications/misc/cheat/default.nix b/pkgs/applications/misc/cheat/default.nix
index 93d7717fa5c..a46485c5ef7 100644
--- a/pkgs/applications/misc/cheat/default.nix
+++ b/pkgs/applications/misc/cheat/default.nix
@@ -1,22 +1,24 @@
-{ python3Packages, fetchurl, lib }:
+{ stdenv, python3Packages, fetchurl }:
 
-python3Packages.buildPythonApplication rec {
-  version = "2.2.0";
-  name = "cheat-${version}";
+with python3Packages;
+buildPythonApplication rec {
+  name = "${pname}-${version}";
+  pname = "cheat";
+  version = "2.2.1";
 
   propagatedBuildInputs = with python3Packages; [ docopt pygments ];
 
-  src = fetchurl {
-    url = "mirror://pypi/c/cheat/${name}.tar.gz";
-    sha256 = "16pg1bgyfjvzpm2rbi411ckf3gljg9v1vzd5qhp23g69ch6yr138";
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0w4k1h02p2gjv5wcr1c7r0ynb7v50qajx4hpyxz0ndh96f6x30pl";
   };
   # no tests available
   doCheck = false;
 
-  meta = {
+  meta = with stdenv.lib; {
     description = "cheat allows you to create and view interactive cheatsheets on the command-line";
-    maintainers = with lib.maintainers; [ mic92 ];
-    license = with lib.licenses; [gpl3 mit];
+    maintainers = with maintainers; [ mic92 ];
+    license = with licenses; [gpl3 mit];
     homepage = https://github.com/chrisallenlane/cheat;
   };
 }