Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 40811ee1612b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5c79a18f98b6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 12, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    prusnak Pavol Rusnak
    Copy the full SHA
    f70ecb6 View commit details
  2. Merge pull request #99194 from prusnak/fastecdsa

    python3Packages.fastecdsa: init at 2.1.5
    mweinelt authored Nov 12, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5c79a18 View commit details
Showing with 42 additions and 0 deletions.
  1. +40 −0 pkgs/development/python-modules/fastecdsa/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/fastecdsa/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, gmp
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "fastecdsa";
version = "2.1.5";

src = fetchPypi {
inherit pname version;
sha256 = "d0772f7fe243e8a82d33e95c542ea6cc0ef7f3cfcced7440d6defa71a35addfa";
};

buildInputs = [ gmp ];

checkInputs = [ pytestCheckHook ];

# skip tests which require being online to download test vectors
pytestFlags = [
"--ignore=fastecdsa/tests/test_wycheproof_vectors.py"
"--ignore=fastecdsa/tests/test_rfc6979_ecdsa.py"
];

# skip tests for now, they fail with
# ImportError: cannot import name '_ecdsa' from 'fastecdsa'
# but the installed package works just fine
doCheck = false;

pythonImportsCheck = [ "fastecdsa" ];

meta = with lib; {
description = "Fast elliptic curve digital signatures";
homepage = "https://github.com/AntonKueltz/fastecdsa";
license = licenses.unlicense;
maintainers = with maintainers; [ prusnak ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2012,6 +2012,8 @@ in {

fastdtw = callPackage ../development/python-modules/fastdtw { };

fastecdsa = callPackage ../development/python-modules/fastecdsa { };

fasteners = callPackage ../development/python-modules/fasteners { };

fastentrypoints = callPackage ../development/python-modules/fastentrypoints { };