nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "cashaddress";
11 version = "1.0.6-unstable-2019-05-15";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "oskyk";
16 repo = "cashaddress";
17 rev = "0ca44cff6bd3e63a67b494296c0d1eeaf6cc120d";
18 hash = "sha256-4izWD2KZqy1F7CAgdbe1fpjMlMZC0clrkHKS9IIQuoc=";
19 };
20
21 nativeBuildInputs = [ setuptools ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "cashaddress" ];
26
27 meta = {
28 description = "Python tool for convert bitcoin cash legacy addresses";
29 homepage = "https://github.com/oskyk/cashaddress";
30 changelog = "https://github.com/oskyk/cashaddress/releases/tag/${version}";
31 license = lib.licenses.gpl3Only;
32 maintainers = with lib.maintainers; [ fab ];
33 };
34}