nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "pretend";
10 version = "1.0.9";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "alex";
15 repo = "pretend";
16 rev = "v${version}";
17 hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ=";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "pretend" ];
23
24 meta = {
25 description = "Module for stubbing";
26 homepage = "https://github.com/alex/pretend";
27 license = lib.licenses.bsd3;
28 maintainers = [ ];
29 };
30}