nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "isoweek";
11 version = "1.3.3";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-c/P3usRD4Fo6tFwypyBIsMTybVPYFGLsSxQsdYHT/+g=";
17 };
18
19 build-system = [ setuptools ];
20
21 nativeCheckInputs = [ unittestCheckHook ];
22
23 pythonImportsCheck = [ "isoweek" ];
24
25 meta = {
26 description = "Module work with ISO weeks";
27 homepage = "https://github.com/gisle/isoweek";
28 changelog = "https://github.com/gisle/isoweek/releases/tag/v${version}";
29 license = lib.licenses.bsd2;
30 maintainers = with lib.maintainers; [ mrmebelman ];
31 };
32}