mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
pythonPackages.signedjson: refactor move to python-modules
This commit is contained in:
parent
62caeb1e31
commit
5db9302335
2 changed files with 27 additions and 14 deletions
26
pkgs/development/python-modules/signedjson/default.nix
Normal file
26
pkgs/development/python-modules/signedjson/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, canonicaljson
|
||||
, unpaddedbase64
|
||||
, pynacl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "signedjson";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/matrix-org/python-signedjson.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0b8xxhc3npd4567kqapfp4gs7m0h057xam3an7424az262ind82n";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ canonicaljson unpaddedbase64 pynacl ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pypi.org/project/signedjson/;
|
||||
description = "Sign JSON with Ed25519 signatures";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
|
@ -4385,20 +4385,7 @@ in {
|
|||
|
||||
service-identity = callPackage ../development/python-modules/service_identity { };
|
||||
|
||||
signedjson = buildPythonPackage rec {
|
||||
name = "signedjson-${version}";
|
||||
version = "1.0.0";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = "https://github.com/matrix-org/python-signedjson.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0b8xxhc3npd4567kqapfp4gs7m0h057xam3an7424az262ind82n";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [
|
||||
canonicaljson unpaddedbase64 pynacl
|
||||
];
|
||||
};
|
||||
signedjson = callPackage ../development/python-modules/signedjson { };
|
||||
|
||||
unpaddedbase64 = buildPythonPackage rec {
|
||||
name = "unpaddedbase64-${version}";
|
||||
|
|
Loading…
Reference in a new issue