nixpkgs-suyu/pkgs/development/python-modules/python-jose/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

30 lines
814 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub
, future, six, ecdsa, pycryptodome, pytest
}:
buildPythonPackage rec {
pname = "python-jose";
name = "${pname}-${version}";
version = "1.3.2";
src = fetchFromGitHub {
owner = "mpdavis";
repo = "python-jose";
rev = version;
sha256 = "0933pbflv2pvws5m0ksz8y1fqr8m123smmrbr5k9a71nssd502sv";
};
buildInputs = [ pytest ];
checkPhase = "py.test .";
patches = [
# to use pycryptodme instead of pycrypto
./pycryptodome.patch
];
propagatedBuildInputs = [ future six ecdsa pycryptodome ];
meta = with stdenv.lib; {
homepage = https://github.com/mpdavis/python-jose;
description = "A JOSE implementation in Python";
platforms = platforms.all;
license = licenses.mit;
maintainers = [ maintainers.jhhuh ];
};
}