From dabf89fadddd334aeefe033991c91c9232bd0cc6 Mon Sep 17 00:00:00 2001 From: Samuel Leathers Date: Wed, 13 Sep 2017 21:30:40 -0400 Subject: [PATCH] credstash: 1.13.2 -> 1.13.3 --- .../python-modules/credstash/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +----------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/credstash/default.nix diff --git a/pkgs/development/python-modules/credstash/default.nix b/pkgs/development/python-modules/credstash/default.nix new file mode 100644 index 000000000000..9f61018ceabb --- /dev/null +++ b/pkgs/development/python-modules/credstash/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchPypi, cryptography, boto3, pyyaml, docutils }: + +buildPythonPackage rec { + pname = "credstash"; + version = "1.13.3"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1x2dh4rs5sahb8h2xznhq7srcm2zl9ykc72a8iqpq4dz7l9k7x7i"; + }; + + propagatedBuildInputs = [ cryptography boto3 pyyaml docutils ]; + + # No tests in archive + doCheck = false; + + meta = with stdenv.lib; { + description = "A utility for managing secrets in the cloud using AWS KMS and DynamoDB"; + homepage = https://github.com/LuminalOSS/credstash; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9edf6571a527..7ba293f521bb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3254,27 +3254,7 @@ in { }; }; - credstash = buildPythonPackage rec { - pname = "credstash"; - version = "1.13.2"; - name = "${pname}-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; - sha256 = "b6283e565e3e441e8f74efcca54ece9697db16ce2e930fb5b6f7c0ab929c377e"; - }; - - propagatedBuildInputs = with self; [ cryptography boto3 pyyaml docutils ]; - - # No tests in archive - doCheck = false; - - meta = { - description = "A utility for managing secrets in the cloud using AWS KMS and DynamoDB"; - homepage = https://github.com/LuminalOSS/credstash; - license = licenses.asl20; - }; - }; + credstash = callPackage ../development/python-modules/credstash { }; cython = callPackage ../development/python-modules/Cython { };